mirror of
https://github.com/python/cpython.git
synced 2025-09-10 10:47:34 +00:00
gh-128515: Properly check for bolt in test_perf_profiler (#131058)
This commit is contained in:
parent
8431b1fee8
commit
fd3b49e85d
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
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 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
"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 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
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…
Add table
Add a link
Reference in a new issue