diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-11 19:17:39 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-11 19:17:39 +0100 |
commit | 28f4c40bc7fe1c744d0c0206485cb57a6540719e (patch) | |
tree | c0d280b56a4fd6d77948475df8e27da2dea10af3 | |
parent | 399016872bfa88a8aa9d2422774505b80304f7f6 (diff) | |
download | qutebrowser-28f4c40bc7fe1c744d0c0206485cb57a6540719e.tar.gz qutebrowser-28f4c40bc7fe1c744d0c0206485cb57a6540719e.zip |
Changed pathlib.Path.expanduser to pathlib.Path.home
-rw-r--r-- | tests/unit/completion/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index ac64c5d1a..12e623517 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -427,7 +427,7 @@ def test_filesystem_completion(qtmodeltester, config_stub, info, homedir = str(local_files_path) monkeypatch.setenv('HOME', homedir) # POSIX monkeypatch.setenv('USERPROFILE', homedir) # Windows - assert str(pathlib.Path('~').expanduser()) == homedir + assert str(pathlib.Path.home()) == homedir base = '~' expected_1 = str(pathlib.Path('~') / 'file1.txt') |