Skip to content

Commit 01cb8d8

Browse files
committed
Skip perf trampoline tests when BOLT instrumented
1 parent 03be932 commit 01cb8d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def tearDown(self) -> None:
4747
for file in files_to_delete:
4848
file.unlink()
4949

50+
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
5051
def test_trampoline_works(self):
5152
code = """if 1:
5253
def foo():
@@ -100,6 +101,7 @@ def baz():
100101
"Address should contain only hex characters",
101102
)
102103

104+
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
103105
def test_trampoline_works_with_forks(self):
104106
code = """if 1:
105107
import os, sys
@@ -160,6 +162,7 @@ def baz():
160162
self.assertIn(f"py::bar_fork:{script}", child_perf_file_contents)
161163
self.assertIn(f"py::baz_fork:{script}", child_perf_file_contents)
162164

165+
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
163166
def test_sys_api(self):
164167
code = """if 1:
165168
import sys

0 commit comments

Comments
 (0)