summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorItamar Ostricher <itamarost@gmail.com>2022-12-04 04:38:21 -0800
committerGitHub <noreply@github.com>2022-12-04 12:38:21 +0000
commit1012dc1b4367e05b92d67ea6925a39d50dce31b7 (patch)
tree2c979fea8af8e6a999d6f80e73cf148bc0cf60c8 /Lib
parent76f43fc09af29401cc0cec7710b03e4dbf8a4578 (diff)
downloadcpython-git-1012dc1b4367e05b92d67ea6925a39d50dce31b7.tar.gz
GH-91054: Reset static events counts in code watchers tests (#99978)
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 ebe7d27831..1922614ef6 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"):