aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py2/patches/01-fix-tests.patch
blob: 2830ea41dbe37d7308ecd954b61f1cc8c07c83e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- contrib/python/prompt-toolkit/py2/tests/test_contrib.py	(index)
+++ contrib/python/prompt-toolkit/py2/tests/test_contrib.py	(working tree)
@@ -194,7 +194,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))