Title: `test_embed.test_init_pyvenv_cfg()` fails · Issue #128690 · python/cpython · GitHub
Open Graph Title: `test_embed.test_init_pyvenv_cfg()` fails · Issue #128690 · python/cpython
X Title: `test_embed.test_init_pyvenv_cfg()` fails · Issue #128690 · python/cpython
Description: Bug report Bug description: Trying to build Python from main branch and running tests on MacOS 15.2 fails on test_embed.test_init_pyvenv_cfg. ./configure && make -j && ./python.exe -m test test_embed FAIL: test_init_pyvenv_cfg (test.test...
Open Graph Description: Bug report Bug description: Trying to build Python from main branch and running tests on MacOS 15.2 fails on test_embed.test_init_pyvenv_cfg. ./configure && make -j && ./python.exe -m test test_emb...
X Description: Bug report Bug description: Trying to build Python from main branch and running tests on MacOS 15.2 fails on test_embed.test_init_pyvenv_cfg. ./configure && make -j && ./python.exe ...
Opengraph URL: https://github.com/python/cpython/issues/128690
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_embed.test_init_pyvenv_cfg()` fails","articleBody":"# Bug report\n\n### Bug description:\n\nTrying to build Python from main branch and running tests on MacOS 15.2 fails on `test_embed.test_init_pyvenv_cfg`.\n\n```bash\n./configure \u0026\u0026 make -j \u0026\u0026 ./python.exe -m test test_embed\n```\n\n```bash\nFAIL: test_init_pyvenv_cfg (test.test_embed.InitConfigTests.test_init_pyvenv_cfg)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/yyanchii/Desktop/cpython/Lib/test/test_embed.py\", line 1671, in test_init_pyvenv_cfg\n self.check_all_configs(\"test_init_compat_config\", config,\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n api=API_COMPAT, env=env,\n ^^^^^^^^^^^^^^^^^^^^^^^^\n ignore_stderr=True, cwd=tmpdir)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/yyanchii/Desktop/cpython/Lib/test/test_embed.py\", line 939, in check_all_configs\n self.check_config(configs, expected_config)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/yyanchii/Desktop/cpython/Lib/test/test_embed.py\", line 865, in check_config\n self.assertEqual(config, expected)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\nAssertionError: {'argv': [''], 'base_exec_prefix': '/usr/lo[2028 chars]None} != {'_config_init': 1, 'isolated': False, 'use[2128 chars]alse}\n {'_config_init': 1,\n '_init_main': True,\n '_install_importlib': True,\n 'argv': [''],\n- 'base_exec_prefix': '/usr/local',\n+ 'base_exec_prefix': '/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_o9bmpp_',\n 'base_executable': '/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_o9bmpp_/_testembed',\n 'base_prefix': '/usr/local',\n 'buffered_stdio': True,\n 'bytes_warning': 0,\n 'check_hash_pycs_mode': 'default',\n 'code_debug_ranges': True,\n 'configure_c_stdio': False,\n 'cpu_count': -1,\n 'dev_mode': False,\n 'dump_refs': False,\n 'dump_refs_file': None,\n 'exec_prefix': '/private/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_7n79vly',\n 'executable': '/private/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_7n79vly/_testembed',\n 'faulthandler': False,\n 'hash_seed': 0,\n 'home': None,\n 'import_time': False,\n 'inspect': False,\n 'install_signal_handlers': True,\n 'int_max_str_digits': 4300,\n 'interactive': False,\n 'isolated': False,\n 'malloc_stats': False,\n 'module_search_paths': ['/usr/local/lib/python314.zip',\n '/Users/yyanchii/Desktop/cpython/Lib',\n '/Users/yyanchii/Desktop/cpython/build/lib.macosx-15.2-arm64-3.14',\n '/usr/local/lib/python314.zip',\n '/usr/local/lib/python3.14',\n- '/usr/local/lib/python3.14/lib-dynload'],\n+ '/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_o9bmpp_/lib/python3.14/lib-dynload'],\n 'module_search_paths_set': True,\n 'optimization_level': 0,\n 'orig_argv': [],\n 'parse_argv': False,\n 'parser_debug': False,\n 'pathconfig_warnings': True,\n 'perf_profiling': 0,\n 'platlibdir': 'lib',\n 'prefix': '/private/var/folders/z9/tt4sxxm159zbh6xlm2mhrg4r0000gp/T/tmp_7n79vly',\n 'program_name': './_testembed',\n 'pycache_prefix': None,\n 'pythonpath_env': '/usr/local/lib/python314.zip:/Users/yyanchii/Desktop/cpython/Lib:/Users/yyanchii/Desktop/cpython/build/lib.macosx-15.2-arm64-3.14',\n 'quiet': False,\n 'run_command': None,\n 'run_filename': None,\n 'run_module': None,\n 'run_presite': None,\n 'safe_path': False,\n 'show_ref_count': False,\n 'site_import': True,\n 'skip_source_first_line': False,\n 'sys_path_0': None,\n 'tracemalloc': 0,\n 'use_environment': True,\n 'use_frozen_modules': False,\n 'use_hash_seed': False,\n 'use_system_logger': False,\n 'user_site_directory': True,\n 'verbose': 0,\n 'warn_default_encoding': False,\n 'warnoptions': [],\n 'write_bytecode': True,\n 'xoptions': {}}\n\n----------------------------------------------------------------------\nRan 82 tests in 5.051s\n\nFAILED (failures=1, skipped=3)\ntest test_embed failed\ntest_embed failed (1 failure)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n test_embed\n\nTotal duration: 5.1 sec\nTotal tests: run=82 failures=1 skipped=3\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\nAfter bisecting found out [34e840f9ddd](https://github.com/python/cpython/commit/34e840f9ddd9c04991cf004e2594c6a1e0e278d3) commit to be the reason. cc @FFY00 \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128724\n* gh-128771\n* gh-129137\n* gh-129377\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/WolframAlph","@type":"Person","name":"WolframAlph"},"datePublished":"2025-01-09T20:31:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/128690/cpython/issues/128690"}
| 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:cfd6298e-6e5f-a3f0-7919-6816e06c3dc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B074:CD887:2733470:35D10AC:6A4EF072 |
| html-safe-nonce | 4440cca5243957574a7a4c12d95469e5dfd41df40255a34b37e05ce7d77eccba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDc0OkNEODg3OjI3MzM0NzA6MzVEMTBBQzo2QTRFRjA3MiIsInZpc2l0b3JfaWQiOiIzMjc4MjQ2MzAxNDE4ODQ0Mjc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5950617c1e3ac89ddef9ed2eedfeea0c657c53519e33cfb2e61e00889412c96f |
| hovercard-subject-tag | issue:2778702853 |
| 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/128690/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa57dcd724d51c3e19389829f0a5b4cafa4944774a774753fc858dee48225b63/python/cpython/issues/128690 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa57dcd724d51c3e19389829f0a5b4cafa4944774a774753fc858dee48225b63/python/cpython/issues/128690 |
| og:image:alt | Bug report Bug description: Trying to build Python from main branch and running tests on MacOS 15.2 fails on test_embed.test_init_pyvenv_cfg. ./configure && make -j && ./python.exe -m test test_emb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WolframAlph |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 00d04d6b867d2f16ab50bebae8ccc56e07c8988b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width