Skip to content

Commit bb02064

Browse files
committed
add assertions to the with_stats=False path
1 parent 80c202a commit bb02064

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,13 @@ def test_replay_with_and_without_persisted_stats(self):
19721972
self.assertIn('<span class="stat-value">0.4</span>', content)
19731973
self.assertIn('<span class="rate-value">2.0%</span>', content)
19741974
self.assertIn('<span class="rate-value">1.5%</span>', content)
1975+
else:
1976+
self.assertEqual(
1977+
content.count('<span class="stat-value">N/A</span>'), 2
1978+
)
1979+
self.assertEqual(
1980+
content.count('<span class="rate-value">N/A</span>'), 2
1981+
)
19751982

19761983

19771984
class TestBinaryReplayToJsonl(BinaryFormatTestBase):

0 commit comments

Comments
 (0)