-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
test_pyrepl.test_exposed_globals_in_repl failure #121359
Comments
I should point out that I have long had my own dir() function:
Contrast that with mine:
Shouldn't Edit: Sorry, forgot to include the output of
|
How is it installed? |
I have a ~/misc/python directory with some stuff at that level, other
version-specific stuff in pythonN subdirectories, where N is 1, 2, or 3
(I've been at this a while). The appropriate directories are tacked onto
sys.path in my PYTHONSTARTUP file.
…On Thu, Jul 4, 2024, 10:53 AM Victor Stinner ***@***.***> wrote:
I should point out that I have long had my own dir() function
How is it installed?
—
Reply to this email directly, view it on GitHub
<#121359 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2E3IIFKIDBOHDF55JRL3LZKVVYNAVCNFSM6AAAAABKLMZMHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGI3TGMJRGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Unsetting
|
I wrote PR #121414 to pass -I option to Python. Can you test the PR with your startup file? |
run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set. (cherry picked from commit 6239d41) Co-authored-by: Victor Stinner <[email protected]>
run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set.
run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set.
gh-121359: Run test_pyrepl in isolated mode (GH-121414) run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set. (cherry picked from commit 6239d41) Co-authored-by: Victor Stinner <[email protected]>
run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set.
PR #121672 is available for review. I think this should finally fix this issue. |
…estMain (GH-121672) Co-authored-by: Łukasz Langa <[email protected]>
…repl.TestMain (pythonGH-121672) (cherry picked from commit fd085a4) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
…yrepl.TestMain (GH-121672) (GH-121810) (cherry picked from commit fd085a4) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
@ambv, probably this may be closed |
run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set.
…repl.TestMain (pythonGH-121672) Co-authored-by: Łukasz Langa <[email protected]>
I believe that this issue was fixed in the main branch. If not, open a new issue, or reopen the issue. |
Bug report
Bug description:
I'm seeing this on a Dell laptop running XUbuntu 22.04 and MacBook Pro M1 running MacOS 14.5. In both cases, Python was built on main with the following sequence:
On the Mac, I also tested on the 3.13 branch and see the same failure (same out as below, save for the printed interpreter version details).
Dell:
Mac:
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux, macOS
Linked PRs
The text was updated successfully, but these errors were encountered: