https://github.com/python/cpython/commit/a2e9da3cf0c65d42bb7bb949344a59adb06f59f3
commit: a2e9da3cf0c65d42bb7bb949344a59adb06f59f3
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2026-11-05T00:49:07Z
summary:

[3.14] gh-161270: Fix always-skipped `InitConfigTests` in `test_embed` 
(GH-161278) (#161370)

gh-161270: Fix always-skipped `InitConfigTests` in `test_embed` (GH-161278)
(cherry picked from commit 9aa731f311d5b5b7263574f0c2c34b6cd98ecb28)

Co-authored-by: Neko Asakura <[email protected]>

files:
M Lib/test/test_embed.py

diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 103679a6c3d6af..246bb142d3612f 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1085,7 +1085,7 @@ def check_all_configs(self, testname, 
expected_config=None,
         self.check_global_config(configs)
         return configs
 
-    @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT 
instrumented binaries")
+    @unittest.skipIf(support.check_bolt_optimized(), "segfaults on BOLT 
instrumented binaries")
     def test_init_default_config(self):
         self.check_all_configs("test_init_initialize_config", api=API_COMPAT)
 
@@ -1186,7 +1186,7 @@ def test_init_from_config(self):
         self.check_all_configs("test_init_from_config", config, preconfig,
                                api=API_COMPAT)
 
-    @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT 
instrumented binaries")
+    @unittest.skipIf(support.check_bolt_optimized(), "segfaults on BOLT 
instrumented binaries")
     def test_init_compat_env(self):
         preconfig = {
             'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1221,7 +1221,7 @@ def test_init_compat_env(self):
         self.check_all_configs("test_init_compat_env", config, preconfig,
                                api=API_COMPAT)
 
-    @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT 
instrumented binaries")
+    @unittest.skipIf(support.check_bolt_optimized(), "segfaults on BOLT 
instrumented binaries")
     def test_init_python_env(self):
         preconfig = {
             'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1901,7 +1901,7 @@ def test_init_warnoptions(self):
         self.check_all_configs("test_init_warnoptions", config, preconfig,
                                api=API_PYTHON)
 
-    @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT 
instrumented binaries")
+    @unittest.skipIf(support.check_bolt_optimized(), "segfaults on BOLT 
instrumented binaries")
     def test_initconfig_api(self):
         preconfig = {
             'configure_locale': True,

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to