mirror of https://github.com/python/cpython.git
gh-128515: Properly check for bolt in test_perf_profiler (#131058)
This commit is contained in:
parent
8431b1fee8
commit
fd3b49e85d
|
@ -47,7 +47,7 @@ def tearDown(self) -> None:
|
|||
for file in files_to_delete:
|
||||
file.unlink()
|
||||
|
||||
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
|
||||
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
|
||||
def test_trampoline_works(self):
|
||||
code = """if 1:
|
||||
def foo():
|
||||
|
@ -101,7 +101,7 @@ def baz():
|
|||
"Address should contain only hex characters",
|
||||
)
|
||||
|
||||
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
|
||||
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
|
||||
def test_trampoline_works_with_forks(self):
|
||||
code = """if 1:
|
||||
import os, sys
|
||||
|
@ -162,7 +162,7 @@ def baz():
|
|||
self.assertIn(f"py::bar_fork:{script}", child_perf_file_contents)
|
||||
self.assertIn(f"py::baz_fork:{script}", child_perf_file_contents)
|
||||
|
||||
@unittest.skipIf(support.check_bolt_optimized, "fails on BOLT instrumented binaries")
|
||||
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
|
||||
def test_sys_api(self):
|
||||
code = """if 1:
|
||||
import sys
|
||||
|
|
Loading…
Reference in New Issue