Fix test_configfiles.test_init on Windows
This commit is contained in:
parent
ac8fb03b80
commit
237362663a
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
"""Tests for qutebrowser.config.configfiles."""
|
"""Tests for qutebrowser.config.configfiles."""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -101,9 +102,10 @@ def test_init(init_patch, config_tmpdir):
|
|||||||
configfiles.init(config=None)
|
configfiles.init(config=None)
|
||||||
|
|
||||||
# Make sure qsettings land in a subdir
|
# Make sure qsettings land in a subdir
|
||||||
settings = QSettings()
|
if os.name != 'nt':
|
||||||
settings.setValue("hello", "world")
|
settings = QSettings()
|
||||||
settings.sync()
|
settings.setValue("hello", "world")
|
||||||
assert (config_tmpdir / 'qsettings').exists()
|
settings.sync()
|
||||||
|
assert (config_tmpdir / 'qsettings').exists()
|
||||||
|
|
||||||
# Lots of other stuff is tested in test_config.py in test_init
|
# Lots of other stuff is tested in test_config.py in test_init
|
||||||
|
Loading…
Reference in New Issue
Block a user