01-fix-tests.patch 502 B

123456789101112
  1. --- contrib/python/prompt-toolkit/py2/tests/test_contrib.py (index)
  2. +++ contrib/python/prompt-toolkit/py2/tests/test_contrib.py (working tree)
  3. @@ -194,7 +194,8 @@ def test_pathcompleter_does_not_expanduser_by_default():
  4. assert [] == completions
  5. -def test_pathcompleter_can_expanduser():
  6. +def test_pathcompleter_can_expanduser(monkeypatch):
  7. + monkeypatch.setenv('HOME', '/tmp')
  8. completer = PathCompleter(expanduser=True)
  9. doc_text = '~'
  10. doc = Document(doc_text, len(doc_text))