Skip to content

Commit 90c2f07

Browse files
gh-160976: Relax global string table check in Gecko collector test
1 parent c3d1138 commit 90c2f07

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Lib/test/test_profiling/test_sampling_profiler/test_collectors.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,11 @@ def test_gecko_collector_preserves_source_file_paths(self):
820820
self.assertEqual(resolved_file_b, file_b)
821821
self.assertEqual(line_b, 20)
822822

823-
# Ensure the filename indices in funcTable are distinct
823+
# Ensure the filename indices and resolved paths in funcTable are distinct
824824
self.assertNotEqual(file_idx_a, file_idx_b)
825-
826-
# Ensure the basename is not interned in place of the path
827-
self.assertNotIn("__init__.py", string_array)
825+
self.assertNotEqual(resolved_file_a, resolved_file_b)
826+
self.assertNotEqual(resolved_file_a, os.path.basename(file_a))
827+
self.assertNotEqual(resolved_file_b, os.path.basename(file_b))
828828

829829
def test_gecko_collector_async_aware(self):
830830
collector = GeckoCollector(1000)

0 commit comments

Comments
 (0)