René's URL Explorer Experiment


Title: test_pyrepl.test_exposed_globals_in_repl failure · Issue #121359 · python/cpython · GitHub

Open Graph Title: test_pyrepl.test_exposed_globals_in_repl failure · Issue #121359 · python/cpython

X Title: test_pyrepl.test_exposed_globals_in_repl failure · Issue #121359 · python/cpython

Description: 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: git fetch --all git pull git clean -fdx ./conf...

Open Graph Description: 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: git fe...

X Description: 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: gi...

Opengraph URL: https://github.com/python/cpython/issues/121359

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_pyrepl.test_exposed_globals_in_repl failure","articleBody":"# Bug report\n\n### Bug description:\n\nI'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:\n\n```\ngit fetch --all\ngit pull\ngit clean -fdx\n./configure\nnice make -j test\n```\n\nOn 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).\n\nDell:\n\n```\n======================================================================\nFAIL: test_exposed_globals_in_repl (test.test_pyrepl.test_pyrepl.TestMain.test_exposed_globals_in_repl)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/home/skip/src/python/cpython/Lib/test/support/__init__.py\", line 2622, in wrapper\n    return func(*args, **kwargs)\n  File \"/home/skip/src/python/cpython/Lib/test/test_pyrepl/test_pyrepl.py\", line 868, in test_exposed_globals_in_repl\n    self.assertTrue(case1 or case2 or case3 or case4, output)\n    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true : sorted(dir())\nexit\n\nPython 3.14.0a0 (heads/main:19d1e43e43d, Jul  4 2024, 06:49:38) [GCC 11.4.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\n\n>>> \n>>> s\n>>> so\n>>> sor\n>>> sort\n>>> sorte\n>>> sorted\n\n>>> sorted(\n>>> sorted(d\n>>> sorted(di\n>>> sorted(dir\n>>> sorted(dir(\n>>> sorted(dir()\n>>> sorted(dir())\n\n\n\n\n['__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__ior__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__ror__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']\n\n\n>>> \n>>> e\n>>> ex\n\n\n>>> exi\n\n\n\n>>> exit\n\n\n\n\n\n```\n\nMac:\n\n```\n======================================================================\nFAIL: test_exposed_globals_in_repl (test.test_pyrepl.test_pyrepl.TestMain.test_exposed_globals_in_repl)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/Users/skip/src/python/cpython/Lib/test/support/__init__.py\", line 2622, in wrapper\n    return func(*args, **kwargs)\n  File \"/Users/skip/src/python/cpython/Lib/test/test_pyrepl/test_pyrepl.py\", line 868, in test_exposed_globals_in_repl\n    self.assertTrue(case1 or case2 or case3 or case4, output)\n    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true : sorted(dir())\nexit\n\nPython 3.14.0a0 (heads/main:19d1e43e43d, Jul  4 2024, 06:49:28) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\n\n>>> \n>>> s\n>>> sor\n>>> sorted(\n>>> sorted(d\n>>> sorted(di\n\n>>> sorted(dir())\n\n\n\n['__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__ior__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__ror__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']\n\n\n>>> ex\n>>> exit\n\n\n\n```\n\n\n### CPython versions tested on:\n\n3.13, CPython main branch\n\n### Operating systems tested on:\n\nLinux, macOS\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-121414\n* gh-121417\n* gh-121672\n* gh-121810\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/smontanaro","@type":"Person","name":"smontanaro"},"datePublished":"2024-07-04T11:59:04Z","url":"https://github.com/python/cpython/issues/121359"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:828282f1-190c-0fdb-12b9-985b19af08da
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE3C4:4D9F2:1AEB351:23AD4E7:6B022019
html-safe-nonce4f6025d06332907f3639f70e275f47fadc5b9fceba28efbaaea04b434cef9a3b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0M0OjREOUYyOjFBRUIzNTE6MjNBRDRFNzo2QjAyMjAxOSIsInZpc2l0b3JfaWQiOiI3MDk0NTg1MjI1MTAzMTU1MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7641c5babe091532679845ccf1b9deba84f4ee1ad5be32d036afc3ca04451caf
hovercard-subject-tagissue:2390700244
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/121359/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cddc7fed5aa5dd48843539817f98c5f5d325bac30cc08bd681266b66e90ad433/python/cpython/issues/121359
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cddc7fed5aa5dd48843539817f98c5f5d325bac30cc08bd681266b66e90ad433/python/cpython/issues/121359
og:image:altBug 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: git fe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesmontanaro
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/121359#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F121359
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F121359
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/121359
Reloadhttps://github.com/python/cpython/issues/121359
Reloadhttps://github.com/python/cpython/issues/121359
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/121359
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/121359
test_pyrepl.test_exposed_globals_in_repl failurehttps://github.com/python/cpython/issues/121359#top
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/smontanaro
smontanarohttps://github.com/smontanaro
on Jul 4, 2024https://github.com/python/cpython/issues/121359#issue-2390700244
gh-121359: Run test_pyrepl in isolated mode #121414https://github.com/python/cpython/pull/121414
[3.13] gh-121359: Run test_pyrepl in isolated mode (GH-121414) #121417https://github.com/python/cpython/pull/121417
gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain #121672https://github.com/python/cpython/pull/121672
[3.13] gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain (GH-121672) #121810https://github.com/python/cpython/pull/121810
smontanarohttps://github.com/smontanaro
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jul 4, 2024https://github.com/python/cpython/issues/121359#event-13393887365
vstinnerhttps://github.com/vstinner
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
on Jul 4, 2024https://github.com/python/cpython/issues/121359#event-13394162928
https://github.com/smontanaro
smontanarohttps://github.com/smontanaro
on Jul 4, 2024https://github.com/python/cpython/issues/121359#issuecomment-2209267412
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jul 4, 2024https://github.com/python/cpython/issues/121359#issuecomment-2209273113
https://github.com/smontanaro
smontanarohttps://github.com/smontanaro
on Jul 4, 2024https://github.com/python/cpython/issues/121359#issuecomment-2209424250
…https://github.com/python/cpython/issues/121359
#121359 (comment)https://github.com/python/cpython/issues/121359#issuecomment-2209273113
https://github.com/notifications/unsubscribe-auth/AA2E3IIFKIDBOHDF55JRL3LZKVVYNAVCNFSM6AAAAABKLMZMHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGI3TGMJRGMhttps://github.com/notifications/unsubscribe-auth/AA2E3IIFKIDBOHDF55JRL3LZKVVYNAVCNFSM6AAAAABKLMZMHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGI3TGMJRGM
https://github.com/smontanaro
smontanarohttps://github.com/smontanaro
on Jul 5, 2024https://github.com/python/cpython/issues/121359#issuecomment-2211154910
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jul 5, 2024https://github.com/python/cpython/issues/121359#issuecomment-2211299942
#121414https://github.com/python/cpython/pull/121414
miss-islingtonhttps://github.com/miss-islington
on Jul 5, 2024https://github.com/python/cpython/issues/121359#event-13409274230
pythongh-121359: Run test_pyrepl in isolated mode (pythonGH-121414)https://github.com/miss-islington/cpython/commit/e311b7755eb54d366daccccbb6dd29c6ac005aca
pythongh-121359https://github.com/python/cpython/issues/121359
pythonGH-121414https://github.com/python/cpython/pull/121414
e311b77https://github.com/miss-islington/cpython/commit/e311b7755eb54d366daccccbb6dd29c6ac005aca
vstinnerhttps://github.com/vstinner
on Jul 5, 2024https://github.com/python/cpython/issues/121359#event-13409286157
pythongh-121359: Run test_pyrepl in isolated modehttps://github.com/vstinner/cpython/commit/8f615a753e05b33ccf60b10ca7bc290c048ac725
pythongh-121359https://github.com/python/cpython/issues/121359
8f615a7https://github.com/vstinner/cpython/commit/8f615a753e05b33ccf60b10ca7bc290c048ac725
gh-121359: Run test_pyrepl in isolated mode (#121414)https://github.com/python/cpython/commit/6239d41527d5977aa5d44e4b894d719bc045860e
gh-121359https://github.com/python/cpython/issues/121359
#121414https://github.com/python/cpython/pull/121414
6239d41https://github.com/python/cpython/commit/6239d41527d5977aa5d44e4b894d719bc045860e
[3.13] gh-121359: Run test_pyrepl in isolated mode (GH-121414) (#121417)https://github.com/python/cpython/commit/4aa0c5ec34836a026d06e556784c41e0eeb807b3
gh-121359https://github.com/python/cpython/issues/121359
GH-121414https://github.com/python/cpython/pull/121414
#121417https://github.com/python/cpython/pull/121417
4aa0c5ehttps://github.com/python/cpython/commit/4aa0c5ec34836a026d06e556784c41e0eeb807b3
skirpichevhttps://github.com/skirpichev
on Jul 13, 2024https://github.com/python/cpython/issues/121359#event-13495119167
pythongh-121359: make clean environment (not PYTHON* vars) for test_p…https://github.com/skirpichev/cpython/commit/bd2787b84eede38d96338984248084dd71909078
pythongh-121359https://github.com/python/cpython/issues/121359
bd2787bhttps://github.com/skirpichev/cpython/commit/bd2787b84eede38d96338984248084dd71909078
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
on Jul 13, 2024https://github.com/python/cpython/issues/121359#issuecomment-2226842533
#121672https://github.com/python/cpython/pull/121672
skirpichevhttps://github.com/skirpichev
on Jul 13, 2024https://github.com/python/cpython/issues/121359#event-13495127102
pythongh-121359: make clean environment (no PYTHON* vars) for test_py…https://github.com/skirpichev/cpython/commit/3cc746c80cc0dd329bedd2eb9168d78e045503b9
pythongh-121359https://github.com/python/cpython/issues/121359
3cc746chttps://github.com/skirpichev/cpython/commit/3cc746c80cc0dd329bedd2eb9168d78e045503b9
ambvhttps://github.com/ambv
on Jul 15, 2024https://github.com/python/cpython/issues/121359#event-13510060417
gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.T…https://github.com/python/cpython/commit/fd085a411ed2ccc9bde2338cf50068bc7f213ece
gh-121359https://github.com/python/cpython/issues/121359
fd085a4https://github.com/python/cpython/commit/fd085a411ed2ccc9bde2338cf50068bc7f213ece
miss-islingtonhttps://github.com/miss-islington
on Jul 15, 2024https://github.com/python/cpython/issues/121359#event-13510061477
pythongh-121359: make clean environment (no PYTHON* vars) for test_py…https://github.com/miss-islington/cpython/commit/2784c199d7bbb43d9ec1d8f60973ff2d8a343b41
pythongh-121359https://github.com/python/cpython/issues/121359
2784c19https://github.com/miss-islington/cpython/commit/2784c199d7bbb43d9ec1d8f60973ff2d8a343b41
ambvhttps://github.com/ambv
on Jul 15, 2024https://github.com/python/cpython/issues/121359#event-13510747387
[3.13] gh-121359: make clean environment (no PYTHON* vars) for test_p…https://github.com/python/cpython/commit/2ee2bfe617f6912eeb84ee9e45996bba2450f757
gh-121359https://github.com/python/cpython/issues/121359
2ee2bfehttps://github.com/python/cpython/commit/2ee2bfe617f6912eeb84ee9e45996bba2450f757
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
on Jul 17, 2024https://github.com/python/cpython/issues/121359#issuecomment-2232402907
@ambvhttps://github.com/ambv
estyxxhttps://github.com/estyxx
on Jul 17, 2024https://github.com/python/cpython/issues/121359#event-13533269965
pythongh-121359: Run test_pyrepl in isolated mode (python#121414)https://github.com/estyxx/cpython/commit/0587b4ceba62504a408747d551d69e10c67667ce
pythongh-121359https://github.com/python/cpython/issues/121359
python#121414https://github.com/python/cpython/pull/121414
0587b4chttps://github.com/estyxx/cpython/commit/0587b4ceba62504a408747d551d69e10c67667ce
pythongh-121359: make clean environment (no PYTHON* vars) for test_py…https://github.com/estyxx/cpython/commit/42747d1b8c80f912b61503f30df945480b1d8483
pythongh-121359https://github.com/python/cpython/issues/121359
42747d1https://github.com/estyxx/cpython/commit/42747d1b8c80f912b61503f30df945480b1d8483
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jul 27, 2024https://github.com/python/cpython/issues/121359#issuecomment-2254247934
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 27, 2024https://github.com/python/cpython/issues/121359#event-13669497584
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/121359
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/121359
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.