Skip to content

Commit 027c52b

Browse files
author
Ivona Stojanovic
committed
Remove the test for _color_cache
The _color_cache itself is no longer needed because colors are no longer generated in HeatmapCollector.
1 parent 1b81ef7 commit 027c52b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Lib/test/test_profiling/test_heatmap.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ def test_init_sets_total_samples_to_zero(self):
147147
collector = HeatmapCollector(sample_interval_usec=100)
148148
self.assertEqual(collector._total_samples, 0)
149149

150-
def test_init_creates_color_cache(self):
151-
"""Test that color cache is initialized."""
152-
collector = HeatmapCollector(sample_interval_usec=100)
153-
self.assertIsInstance(collector._color_cache, dict)
154-
self.assertEqual(len(collector._color_cache), 0)
155-
156150
def test_init_gets_path_info(self):
157151
"""Test that path info is retrieved during init."""
158152
collector = HeatmapCollector(sample_interval_usec=100)

0 commit comments

Comments
 (0)