gh-118908: Limit exposed globals from internal imports and definitions on new REPL startup (#119547)

This commit is contained in:
Eugene Triguba 2024-06-11 13:40:31 -04:00 committed by GitHub
parent 0335662fe1
commit 86a8a1c57a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 83 additions and 8 deletions

View file

@ -1,9 +1,9 @@
"""Test the interactive interpreter."""
import sys
import os
import unittest
import subprocess
import sys
import unittest
from textwrap import dedent
from test import support
from test.support import cpython_only, has_subprocess_support, SuppressCrashReport
@ -199,7 +199,6 @@ class TestInteractiveInterpreter(unittest.TestCase):
assert_python_ok("-m", "asyncio")
class TestInteractiveModeSyntaxErrors(unittest.TestCase):
def test_interactive_syntax_error_correct_line(self):