Skip to content

Commit c8837da

Browse files
zaniebindygreg
andcommitted
Skip segfaulting test_embed tests when BOLT instrumented
Co-authored-by: Gregory Szorc <[email protected]>
1 parent f157485 commit c8837da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_embed.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ def check_all_configs(self, testname, expected_config=None,
940940
self.check_global_config(configs)
941941
return configs
942942

943+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
943944
def test_init_default_config(self):
944945
self.check_all_configs("test_init_initialize_config", api=API_COMPAT)
945946

@@ -1039,6 +1040,7 @@ def test_init_from_config(self):
10391040
self.check_all_configs("test_init_from_config", config, preconfig,
10401041
api=API_COMPAT)
10411042

1043+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
10421044
def test_init_compat_env(self):
10431045
preconfig = {
10441046
'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1074,6 +1076,7 @@ def test_init_compat_env(self):
10741076
self.check_all_configs("test_init_compat_env", config, preconfig,
10751077
api=API_COMPAT)
10761078

1079+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
10771080
def test_init_python_env(self):
10781081
preconfig = {
10791082
'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1772,6 +1775,7 @@ def test_init_set_config(self):
17721775
self.check_all_configs("test_init_set_config", config,
17731776
api=API_ISOLATED)
17741777

1778+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
17751779
def test_initconfig_api(self):
17761780
preconfig = {
17771781
'configure_locale': True,

0 commit comments

Comments
 (0)