mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.13] gh-121605: Fix test hang when pyrepl is not available (GH-121820) (GH-121823)
The fallback repl does not support "exit" without parentheses, so the
test would hang until the timeout expired.
(cherry picked from commit 4134261ab8
)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
5b718e7fc7
commit
0201b98d4c
1 changed files with 1 additions and 1 deletions
|
@ -901,7 +901,7 @@ class TestMain(TestCase):
|
|||
def test_exposed_globals_in_repl(self):
|
||||
pre = "['__annotations__', '__builtins__'"
|
||||
post = "'__loader__', '__name__', '__package__', '__spec__']"
|
||||
output, exit_code = self.run_repl(["sorted(dir())", "exit"])
|
||||
output, exit_code = self.run_repl(["sorted(dir())", "exit()"])
|
||||
if "can't use pyrepl" in output:
|
||||
self.skipTest("pyrepl not available")
|
||||
self.assertEqual(exit_code, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue