diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-11 20:01:20 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-11 20:01:20 +0100 |
commit | 4ea73a83e98bf21a0adb54874b54eb6ee1c734e4 (patch) | |
tree | e1a856f0d9483ffa51f07e82c7d6af7e484219be | |
parent | 9446443f907247607e45b93d4411ae8b15152f94 (diff) | |
download | qutebrowser-4ea73a83e98bf21a0adb54874b54eb6ee1c734e4.tar.gz qutebrowser-4ea73a83e98bf21a0adb54874b54eb6ee1c734e4.zip |
Removed exist_ok
-rw-r--r-- | tests/unit/config/test_configcommands.py | 6 | ||||
-rw-r--r-- | tests/unit/config/test_configfiles.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index f744f69ff..72af2ad3e 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -642,7 +642,7 @@ class TestWritePy: def test_expanduser(self, commands, monkeypatch, tmp_path): """Make sure that using a path with ~/... works correctly.""" home = tmp_path / 'home' - home.mkdir(exist_ok=True) + home.mkdir() monkeypatch.setenv('HOME', str(home)) commands.config_write_py('~/config.py') @@ -653,7 +653,7 @@ class TestWritePy: def test_existing_file(self, commands, tmp_path): confpy = tmp_path / 'config.py' - confpy.touch(exist_ok=True) + confpy.touch() with pytest.raises(cmdutils.CommandError) as excinfo: commands.config_write_py(str(confpy)) @@ -663,7 +663,7 @@ class TestWritePy: def test_existing_file_force(self, commands, tmp_path): confpy = tmp_path / 'config.py' - confpy.touch(exist_ok=True) + confpy.touch() commands.config_write_py(str(confpy), force=True) diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index b011d79d2..4d70b7d25 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -1173,7 +1173,7 @@ class TestConfigPy: alt_filename = 'alt-config.py' alt_confpy_dir = tmp_path / 'alt-confpy-dir' - alt_confpy_dir.mkdir(exist_ok=True) + alt_confpy_dir.mkdir() monkeypatch.setattr(standarddir, 'config_py', lambda: str(alt_confpy_dir / alt_filename)) |