Changed pathlib.Path.expanduser to pathlib.Path.home

This commit is contained in:
Lembrun 2021-03-11 19:17:39 +01:00
parent 399016872b
commit 28f4c40bc7
1 changed files with 1 additions and 1 deletions

View File

@ -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')