aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch')
-rw-r--r--contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch b/contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch
new file mode 100644
index 0000000000..3cb8ffa39d
--- /dev/null
+++ b/contrib/python/prompt-toolkit/py3/patches/01-fix-tests.patch
@@ -0,0 +1,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))