GH-104584: Fix test_capi.test_counter_optimizer() when run twice (#10… · python/cpython@adaacf2 · GitHub
Skip to content

Commit adaacf2

Browse files
authored
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.
1 parent 2ac3eec commit adaacf2

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

Lib/test/test_capi/test_misc.py

Lines changed: 24 additions & 15 deletions

0 commit comments

Comments
 (0)