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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:828282f1-190c-0fdb-12b9-985b19af08da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3C4:4D9F2:1AEB351:23AD4E7:6B022019 |
| html-safe-nonce | 4f6025d06332907f3639f70e275f47fadc5b9fceba28efbaaea04b434cef9a3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0M0OjREOUYyOjFBRUIzNTE6MjNBRDRFNzo2QjAyMjAxOSIsInZpc2l0b3JfaWQiOiI3MDk0NTg1MjI1MTAzMTU1MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7641c5babe091532679845ccf1b9deba84f4ee1ad5be32d036afc3ca04451caf |
| hovercard-subject-tag | issue:2390700244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/121359/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cddc7fed5aa5dd48843539817f98c5f5d325bac30cc08bd681266b66e90ad433/python/cpython/issues/121359 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cddc7fed5aa5dd48843539817f98c5f5d325bac30cc08bd681266b66e90ad433/python/cpython/issues/121359 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smontanaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width