Changed pathlib.Path.expanduser to pathlib.Path.home
This commit is contained in:
parent
399016872b
commit
28f4c40bc7
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue