commit | adaacf26d3c407e311b453c71abc40672ee549df | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Jun 28 04:41:21 2023 +0200 |
committer | GitHub <noreply@github.com> | Wed Jun 28 04:41:21 2023 +0200 |
tree | 4300b2eb24ea1b58a0e9b1d3449b258959a4235d | |
parent | 2ac3eec103cf450aaaebeb932e51155d2e7fb37b [diff] |
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.