Skip to content

Commit fd3b49e

Browse files
authored
gh-128515: Properly check for bolt in test_perf_profiler (#131058)
1 parent 8431b1f commit fd3b49e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_perf_profiler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +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")
50+
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
5151
def test_trampoline_works(self):
5252
code = """if 1:
5353
def foo():
@@ -101,7 +101,7 @@ def baz():
101101
"Address should contain only hex characters",
102102
)
103103

104-
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
104+
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
105105
def test_trampoline_works_with_forks(self):
106106
code = """if 1:
107107
import os, sys
@@ -162,7 +162,7 @@ def baz():
162162
self.assertIn(f"py::bar_fork:{script}", child_perf_file_contents)
163163
self.assertIn(f"py::baz_fork:{script}", child_perf_file_contents)
164164

165-
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
165+
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
166166
def test_sys_api(self):
167167
code = """if 1:
168168
import sys

0 commit comments

Comments
 (0)