Title: test_embed and test_ssl failing on linux 6.12.13 · Issue #131579 · python/cpython · GitHub
Open Graph Title: test_embed and test_ssl failing on linux 6.12.13 · Issue #131579 · python/cpython
X Title: test_embed and test_ssl failing on linux 6.12.13 · Issue #131579 · python/cpython
Description: OS : Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux Build python ./configure --with-pydebug --with-trace-refs make ./python -m venv .venv source .venv/bin/activate make test #test_ssl an...
Open Graph Description: OS : Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux Build python ./configure --with-pydebug --with-trace-refs make ./python -m venv .venv source ....
X Description: OS : Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux Build python ./configure --with-pydebug --with-trace-refs make ./python -m venv .venv source ....
Opengraph URL: https://github.com/python/cpython/issues/131579
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_embed and test_ssl failing on linux 6.12.13","articleBody":"OS : Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux\n\nBuild python \n\n```\n./configure --with-pydebug --with-trace-refs\n\nmake\n\n./python -m venv .venv\n\nsource .venv/bin/activate\n\nmake test #test_ssl and test_embed fails\n\npython -m test -v test_embed #fails\n\npython -m test -v test_ssl #fails\n```\n\nFailure for `test_ssl` in IDE for comparison.\n\n\n\nIs there more to python setup for the tests to succeed? The SSL test seems to be comparing default(7) to actual(8) options hence the mismatch. \n\nI don't know why the test_embed is failing.\n\nError logs: \n\n```\n0:01:18 load avg: 7.17 [1/2/1] test_ssl failed (1 failure)\nRe-running test_ssl in verbose mode (matching: test_options)\ntest_ssl: testing with 'OpenSSL 3.4.1 11 Feb 2025' (3, 4, 0, 1, 0)\n under 'Linux-6.12.13-amd64-x86_64-with-glibc2.40'\n HAS_SNI = True\n OP_ALL = 0x80000050\n OP_NO_TLSv1_1 = 0x10000000\ntest_options (test.test_ssl.BasicSocketTests.test_options) ... ok\ntest_options (test.test_ssl.ContextTests.test_options) ... FAIL\ntest_options (test.test_ssl.TestEnumerations.test_options) ... ok\n\n======================================================================\nFAIL: test_options (test.test_ssl.ContextTests.test_options)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/kali/Desktop/GIT/cpython/Lib/test/test_ssl.py\", line 970, in test_options\n self.assertEqual(default, ctx.options)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: \u003cOpti[52 chars]CIPHER_SERVER_PREFERENCE|OP_NO_SSLv3|OP_ALL: 2186412112\u003e != \u003cOpti[52 chars]CIPHER_SERVER_PREFERENCE|OP_NO_SSLv3|OP_ALL|262144: 2186674256\u003e\n\n----------------------------------------------------------------------\nRan 3 tests in 0.004s\n\nFAILED (failures=1)\ntest test_ssl failed\n0:01:18 load avg: 7.17 [2/2/2] test_embed failed (1 failure)\nRe-running test_embed in verbose mode (matching: test_init_setpythonhome)\ntest_init_setpythonhome (test.test_embed.InitConfigTests.test_init_setpythonhome) ... FAIL\n\n======================================================================\nFAIL: test_init_setpythonhome (test.test_embed.InitConfigTests.test_init_setpythonhome)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/kali/Desktop/GIT/cpython/Lib/test/test_embed.py\", line 1456, in test_init_setpythonhome\n self.check_all_configs(\"test_init_setpythonhome\", config,\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n api=API_COMPAT, env=env)\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/kali/Desktop/GIT/cpython/Lib/test/test_embed.py\", line 948, in check_all_configs\n self.check_config(configs, expected_config)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/kali/Desktop/GIT/cpython/Lib/test/test_embed.py\", line 874, in check_config\n self.assertEqual(config, expected)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\nAssertionError: {'argv': [''], 'base_exec_prefix': '/home/k[2036 chars]None} != {'_config_init': 1, 'isolated': False, 'use[2022 chars]alse}\n {'_config_init': 1,\n '_init_main': True,\n '_install_importlib': True,\n 'argv': [''],\n 'base_exec_prefix': '/home/kali/Desktop/GIT/cpython',\n 'base_executable': '/home/kali/Desktop/GIT/cpython/.venv1/bin/python3',\n 'base_prefix': '/home/kali/Desktop/GIT/cpython',\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': '/home/kali/Desktop/GIT/cpython/.venv1',\n? -------\n\n+ 'exec_prefix': '/home/kali/Desktop/GIT/cpython',\n 'executable': '/home/kali/Desktop/GIT/cpython/.venv1/bin/python3',\n 'faulthandler': False,\n 'hash_seed': 0,\n 'home': '/home/kali/Desktop/GIT/cpython',\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 '/home/kali/Desktop/GIT/cpython/Lib',\n '/home/kali/Desktop/GIT/cpython/build/lib.linux-x86_64-3.14',\n '/home/kali/Desktop/GIT/cpython/lib/python314.zip',\n '/home/kali/Desktop/GIT/cpython/lib/python3.14',\n '/home/kali/Desktop/GIT/cpython/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': '/home/kali/Desktop/GIT/cpython/.venv1',\n? -------\n\n+ 'prefix': '/home/kali/Desktop/GIT/cpython',\n 'program_name': 'python3',\n 'pycache_prefix': None,\n 'pythonpath_env': '/usr/local/lib/python314.zip:/home/kali/Desktop/GIT/cpython/Lib:/home/kali/Desktop/GIT/cpython/build/lib.linux-x86_64-3.14',\n 'quiet': False,\n 'run_command': None,\n 'run_filename': None,\n 'run_module': None,\n 'safe_path': False,\n 'show_ref_count': False,\n 'site_import': True,\n 'skip_source_first_line': False,\n 'stdlib_dir': '/home/kali/Desktop/GIT/cpython/lib/python3.14',\n 'sys_path_0': None,\n 'tracemalloc': 0,\n 'use_environment': True,\n 'use_frozen_modules': True,\n 'use_hash_seed': 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 1 test in 0.041s\n\nFAILED (failures=1)\ntest test_embed failed\n2 tests failed again:\n test_embed test_ssl\n\n== Tests result: FAILURE then FAILURE ==\n```","author":{"url":"https://github.com/abhi-jha","@type":"Person","name":"abhi-jha"},"datePublished":"2025-03-22T13:00:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/131579/cpython/issues/131579"}
| 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:caa27185-a5e0-9eed-53fa-b478130f45f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE44:27B5EE:42622A:5DA88A:696A0B4B |
| html-safe-nonce | e347b086a49db067ab5874b00c28cdb78339b58a39199622470a87b38cdebd25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTQ0OjI3QjVFRTo0MjYyMkE6NURBODhBOjY5NkEwQjRCIiwidmlzaXRvcl9pZCI6Ijc5NTExMDg3NDMwNzM3NjIxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d5f7c48d2db55f56dbb58c82d12f1dfcf76eddcdd71abad7e1ad34b13f00784a |
| hovercard-subject-tag | issue:2940363969 |
| 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/131579/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0cd6f8ba2d0abc0c7afeb2a2f29dd554ae561d812bf93c96957272bb722e2b88/python/cpython/issues/131579 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0cd6f8ba2d0abc0c7afeb2a2f29dd554ae561d812bf93c96957272bb722e2b88/python/cpython/issues/131579 |
| og:image:alt | OS : Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux Build python ./configure --with-pydebug --with-trace-refs make ./python -m venv .venv source .... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhi-jha |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width