summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_optimizer.py
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-02-12 16:05:30 (GMT)
committerGitHub <noreply@github.com>2024-02-12 16:05:30 (GMT)
commit93ac78ac3ee124942bca7492149c3ff0003b6e30 (patch)
tree8e51387e20345fa788f4d991a56d9dc38d998d59 /Lib/test/test_optimizer.py
parent95ebd45613d6bf0a8b76778454f1d413d54209db (diff)
downloadcpython-93ac78ac3ee124942bca7492149c3ff0003b6e30.zip
cpython-93ac78ac3ee124942bca7492149c3ff0003b6e30.tar.gz
cpython-93ac78ac3ee124942bca7492149c3ff0003b6e30.tar.bz2
gh-115058: Add ``reset_rare_event_counters`` function in `_testinternalcapi` (GH-115128)
Diffstat (limited to 'Lib/test/test_optimizer.py')
-rw-r--r--Lib/test/test_optimizer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_optimizer.py b/Lib/test/test_optimizer.py
index c8554c4..dfea8be 100644
--- a/Lib/test/test_optimizer.py
+++ b/Lib/test/test_optimizer.py
@@ -7,6 +7,9 @@ _testinternalcapi = import_helper.import_module("_testinternalcapi")
class TestRareEventCounters(unittest.TestCase):
+ def setUp(self):
+ _testinternalcapi.reset_rare_event_counters()
+
def test_set_class(self):
class A:
pass