GH-104584: Fix test_capi.test_counter_optimizer() when run twice by vstinner · Pull Request #106171 · python/cpython · GitHub
Skip to content

GH-104584: Fix test_capi.test_counter_optimizer() when run twice - #106171

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:test_counter_optimizer
Jun 28, 2023
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:test_counter_optimizer

Conversation

@vstinner

@vstinner vstinner commented Jun 28, 2023

Copy link
Copy Markdown
Member

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.

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.
@bedevere-bot bedevere-bot added awaiting core review tests Tests in the Lib/test dir labels Jun 28, 2023
@vstinner vstinner added skip news and removed tests Tests in the Lib/test dir awaiting core review labels Jun 28, 2023
@vstinner

Copy link
Copy Markdown
Member Author

@vstinner

vstinner commented Jun 28, 2023

Copy link
Copy Markdown
Member Author

Reproduce the issue with: ./python -m test -m test_counter_optimizer -m test_long_loop -v test_capi test_capi command.

@vstinner
vstinner merged commit adaacf2 into python:main Jun 28, 2023
@vstinner
vstinner deleted the test_counter_optimizer branch June 28, 2023 02:41
@vstinner

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants