]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-104584: Fix test_capi.test_counter_optimizer() when run twice (#106171)
authorVictor Stinner <vstinner@python.org>
Wed, 28 Jun 2023 02:41:21 +0000 (04:41 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 02:41:21 +0000 (04:41 +0200)
commitadaacf26d3c407e311b453c71abc40672ee549df
tree4300b2eb24ea1b58a0e9b1d3449b258959a4235d
parent2ac3eec103cf450aaaebeb932e51155d2e7fb37b
GH-104584: Fix test_capi.test_counter_optimizer() when run twice (#106171)

test_counter_optimizer() and test_long_loop() of test_capi now create
a new function at each call. Otherwise, the optimizer counters are
not the expected values when the test is run more than once.
Lib/test/test_capi/test_misc.py