mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
[3.14] gh-141612: improve test_trampoline_works_with_forks coverage (GH-141613) (#141824)
gh-141612: improve `test_trampoline_works_with_forks` coverage (GH-141613) (cherry picked from commit f15f6d0ba3715c67643e58959459b0e84a67b183) Co-authored-by: Paresh Joshi <rahulj9223@gmail.com>
This commit is contained in:
parent
cfcf7652f6
commit
43d8b7f1ac
@ -160,6 +160,16 @@ 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)
|
||||
|
||||
# The parent's map should not contain the child's symbols.
|
||||
self.assertNotIn(f"py::foo_fork:{script}", perf_file_contents)
|
||||
self.assertNotIn(f"py::bar_fork:{script}", perf_file_contents)
|
||||
self.assertNotIn(f"py::baz_fork:{script}", perf_file_contents)
|
||||
|
||||
# The child's map should not contain the parent's symbols.
|
||||
self.assertNotIn(f"py::foo:{script}", child_perf_file_contents)
|
||||
self.assertNotIn(f"py::bar:{script}", child_perf_file_contents)
|
||||
self.assertNotIn(f"py::baz:{script}", child_perf_file_contents)
|
||||
|
||||
@unittest.skipIf(support.check_bolt_optimized(), "fails on BOLT instrumented binaries")
|
||||
def test_sys_api(self):
|
||||
code = """if 1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user