diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-09-27 12:49:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 12:49:43 (GMT) |
commit | 365dffbaada421db8fdb684a84d1fb311b75ec40 (patch) | |
tree | 1c79d651d4b91e36f614e20f4f63a1ac089148b7 /Lib | |
parent | b79a21ea429844e84509430e636d808ea9cff244 (diff) | |
download | cpython-365dffbaada421db8fdb684a84d1fb311b75ec40.zip cpython-365dffbaada421db8fdb684a84d1fb311b75ec40.tar.gz cpython-365dffbaada421db8fdb684a84d1fb311b75ec40.tar.bz2 |
gh-119180: No longer set `__annotations__` in `__main__` (#124634)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test__interpreters.py | 1 | ||||
-rw-r--r-- | Lib/test/test_pyrepl/test_pyrepl.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test__interpreters.py b/Lib/test/test__interpreters.py index f493a92..14cd50b 100644 --- a/Lib/test/test__interpreters.py +++ b/Lib/test/test__interpreters.py @@ -849,7 +849,6 @@ class RunStringTests(TestBase): ns.pop('__loader__') self.assertEqual(ns, { '__name__': '__main__', - '__annotations__': {}, '__doc__': None, '__package__': None, '__spec__': None, diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 0f3e999..36f940e 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -1080,7 +1080,7 @@ class TestMain(ReplTestCase): @force_not_colorized def test_exposed_globals_in_repl(self): - pre = "['__annotations__', '__builtins__'" + pre = "['__builtins__'" post = "'__loader__', '__name__', '__package__', '__spec__']" output, exit_code = self.run_repl(["sorted(dir())", "exit()"]) if "can't use pyrepl" in output: |