summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_capi/test_watchers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_capi/test_watchers.py b/Lib/test/test_capi/test_watchers.py
index ebe7d27..1922614 100644
--- a/Lib/test/test_capi/test_watchers.py
+++ b/Lib/test/test_capi/test_watchers.py
@@ -383,11 +383,11 @@ class TestCodeObjectWatchers(unittest.TestCase):
del co3
self.assert_event_counts(2, 2, 1, 1)
- # verify counts remain as they were after both watchers are cleared
+ # verify counts are reset and don't change after both watchers are cleared
co4 = _testcapi.code_newempty("test_watchers", "dummy4", 0)
- self.assert_event_counts(2, 2, 1, 1)
+ self.assert_event_counts(0, 0, 0, 0)
del co4
- self.assert_event_counts(2, 2, 1, 1)
+ self.assert_event_counts(0, 0, 0, 0)
def test_clear_out_of_range_watcher_id(self):
with self.assertRaisesRegex(ValueError, r"Invalid code watcher ID -1"):