aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/tests
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-06-14 17:46:04 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-06-14 18:00:06 +0300
commit85f6451860166545196ffa2950aa68be2363733b (patch)
tree4443b7b2465bda4bdc3589314f258329ecaedb38 /contrib/python/prompt-toolkit/py3/tests
parentfa297dd4855aef4bd79faebb48120708d2f9249d (diff)
downloadydb-85f6451860166545196ffa2950aa68be2363733b.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/tests')
-rw-r--r--contrib/python/prompt-toolkit/py3/tests/test_cli.py1
-rw-r--r--contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py1
-rw-r--r--contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py8
3 files changed, 6 insertions, 4 deletions
diff --git a/contrib/python/prompt-toolkit/py3/tests/test_cli.py b/contrib/python/prompt-toolkit/py3/tests/test_cli.py
index 3a16e9fbd3..c155325f98 100644
--- a/contrib/python/prompt-toolkit/py3/tests/test_cli.py
+++ b/contrib/python/prompt-toolkit/py3/tests/test_cli.py
@@ -2,6 +2,7 @@
These are almost end-to-end tests. They create a Prompt, feed it with some
input and check the result.
"""
+
from __future__ import annotations
from functools import partial
diff --git a/contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py b/contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py
index 26c7265151..7d0e99a335 100644
--- a/contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py
+++ b/contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py
@@ -1,6 +1,7 @@
"""
Test the `print` function.
"""
+
from __future__ import annotations
import pytest
diff --git a/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py b/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
index deef6b80b4..3d55dbc514 100644
--- a/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
+++ b/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
@@ -78,13 +78,13 @@ def test_prefix():
def test_completer():
class completer1(Completer):
def get_completions(self, document, complete_event):
- yield Completion("before-%s-after" % document.text, -len(document.text))
- yield Completion("before-%s-after-B" % document.text, -len(document.text))
+ yield Completion(f"before-{document.text}-after", -len(document.text))
+ yield Completion(f"before-{document.text}-after-B", -len(document.text))
class completer2(Completer):
def get_completions(self, document, complete_event):
- yield Completion("before2-%s-after2" % document.text, -len(document.text))
- yield Completion("before2-%s-after2-B" % document.text, -len(document.text))
+ yield Completion(f"before2-{document.text}-after2", -len(document.text))
+ yield Completion(f"before2-{document.text}-after2-B", -len(document.text))
# Create grammar. "var1" + "whitespace" + "var2"
g = compile(r"(?P<var1>[a-z]*) \s+ (?P<var2>[a-z]*)")