summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLembrun <amadeusk7@free.fr>2021-03-11 19:17:39 +0100
committerLembrun <amadeusk7@free.fr>2021-03-11 19:17:39 +0100
commit28f4c40bc7fe1c744d0c0206485cb57a6540719e (patch)
treec0d280b56a4fd6d77948475df8e27da2dea10af3
parent399016872bfa88a8aa9d2422774505b80304f7f6 (diff)
downloadqutebrowser-28f4c40bc7fe1c744d0c0206485cb57a6540719e.tar.gz
qutebrowser-28f4c40bc7fe1c744d0c0206485cb57a6540719e.zip
Changed pathlib.Path.expanduser to pathlib.Path.home
-rw-r--r--tests/unit/completion/test_models.py2
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')