aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch
blob: 3cb8ffa39de92ce8297c1b9cc1515d9368fcd493 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- contrib/python/prompt-toolkit/py3/tests/test_completion.py	(index)
+++ contrib/python/prompt-toolkit/py3/tests/test_completion.py	(working tree)
@@ -197,7 +197,8 @@ def test_pathcompleter_does_not_expanduser_by_default():
     assert [] == completions
 
 
-def test_pathcompleter_can_expanduser():
+def test_pathcompleter_can_expanduser(monkeypatch):
+    monkeypatch.setenv('HOME', '/tmp')
     completer = PathCompleter(expanduser=True)
     doc_text = "~"
     doc = Document(doc_text, len(doc_text))