summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@gmail.com>2024-05-31 07:49:03 (GMT)
committerGitHub <noreply@github.com>2024-05-31 07:49:03 (GMT)
commit0d07182821fad7b95a043d006f1ce13a2d22edcb (patch)
treedd51773d847f35d791bb9436352d39500845f288 /Lib/test/test_pyrepl/test_pyrepl.py
parent13a5fdc72f701c053b96abea48cd8f2775e9418e (diff)
downloadcpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.zip
cpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.tar.gz
cpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.tar.bz2
gh-111201: Support pyrepl on Windows (#119559)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
-rw-r--r--Lib/test/test_pyrepl/test_pyrepl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py
index bdcabf9..aa27220 100644
--- a/Lib/test/test_pyrepl/test_pyrepl.py
+++ b/Lib/test/test_pyrepl/test_pyrepl.py
@@ -508,14 +508,15 @@ class TestPyReplCompleter(TestCase):
reader = ReadlineAlikeReader(console=console, config=config)
return reader
+ @patch("rlcompleter._readline_available", False)
def test_simple_completion(self):
- events = code_to_events("os.geten\t\n")
+ events = code_to_events("os.getpid\t\n")
namespace = {"os": os}
reader = self.prepare_reader(events, namespace)
output = multiline_input(reader, namespace)
- self.assertEqual(output, "os.getenv")
+ self.assertEqual(output, "os.getpid()")
def test_completion_with_many_options(self):
# Test with something that initially displays many options