01-fix-tests.patch 508 B

123456789101112
  1. --- contrib/python/prompt-toolkit/py3/tests/test_completion.py (index)
  2. +++ contrib/python/prompt-toolkit/py3/tests/test_completion.py (working tree)
  3. @@ -197,7 +197,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))