File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,16 @@ def baz():
160160 self .assertIn (f"py::bar_fork:{ script } " , child_perf_file_contents )
161161 self .assertIn (f"py::baz_fork:{ script } " , child_perf_file_contents )
162162
163+ # The parent's map should not contain the child's symbols.
164+ self .assertNotIn (f"py::foo_fork:{ script } " , perf_file_contents )
165+ self .assertNotIn (f"py::bar_fork:{ script } " , perf_file_contents )
166+ self .assertNotIn (f"py::baz_fork:{ script } " , perf_file_contents )
167+
168+ # The child's map should not contain the parent's symbols.
169+ self .assertNotIn (f"py::foo:{ script } " , child_perf_file_contents )
170+ self .assertNotIn (f"py::bar:{ script } " , child_perf_file_contents )
171+ self .assertNotIn (f"py::baz:{ script } " , child_perf_file_contents )
172+
163173 @unittest .skipIf (support .check_bolt_optimized (), "fails on BOLT instrumented binaries" )
164174 def test_sys_api (self ):
165175 for define_eval_hook in (False , True ):
You can’t perform that action at this time.
0 commit comments