https://github.com/python/cpython/commit/de44d716057a19606e2cc99674247db40a642c8d
commit: de44d716057a19606e2cc99674247db40a642c8d
branch: 3.13
author: Paresh Joshi <[email protected]>
committer: picnixz <[email protected]>
date: 2025-11-22T10:38:34+01:00
summary:
[3.13] gh-141612: improve `test_trampoline_works_with_forks` coverage
(GH-141613) (#141826)
* gh-141612: improve `test_trampoline_works_with_forks` coverage (#141613)
(cherry picked from commit f15f6d0ba3715c67643e58959459b0e84a67b183)
files:
M Lib/test/test_perf_profiler.py
diff --git a/Lib/test/test_perf_profiler.py b/Lib/test/test_perf_profiler.py
index b5397c179de080..3c845419a3e174 100644
--- a/Lib/test/test_perf_profiler.py
+++ b/Lib/test/test_perf_profiler.py
@@ -157,6 +157,16 @@ def baz():
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)
+
def test_sys_api(self):
code = """if 1:
import sys
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]