8000 gh-118908: Limit exposed globals from internal imports and definitions on new REPL startup by eugenetriguba · Pull Request #119547 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Lib/test/test_pyrepl/test_pyrepl.py
  • Loading branch information
lysnikolaou authored and pablogsal committed Jun 11, 2024
commit 688129b4e560ffd08cfba702033e5b31b1124148
3 changes: 2 additions & 1 deletion Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import importlib
import io
import itertools
import os
Expand Down Expand Up @@ -848,6 +847,8 @@ def test_exposed_globals_in_repl(self):
"\'__name__\', \'__package__\', \'__spec__\']"
)
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)
self.assertIn(expected_output, output)

Expand Down
Loading
0