◐ Shell
clean mode source ↗

gh-104584: Clean up and fix uops tests and fix crash by gvanrossum · Pull Request #106492 · python/cpython

added 2 commits

July 6, 2023 13:46
The uops test wasn't testing anything by default,
and was failing when run with -Xuops.

Made the two executor-related context managers global,
so TestUops can use them (notably `with temporary_optimizer(opt)`).

Made clear_executor() a little more thorough.

gvanrossum added a commit to gvanrossum/cpython that referenced this pull request

Jul 6, 2023
…6492)

The uops test wasn't testing anything by default,
and was failing when run with -Xuops.

Made the two executor-related context managers global,
so TestUops can use them (notably `with temporary_optimizer(opt)`).

Made clear_executor() a little more thorough.

Fixed a crash upon finalizing a uop optimizer,
by adding a `tp_dealloc` handler.