Currently, there are some tests with intentional leaks or some other tests that do not support rerun. Adding this decorator will help to resolve this edge case. inspired by https://github.com/python/cpython/pull/105122 <!-- gh-linked-prs --> ### Linked PRs * gh-105311 <!-- /gh-linked-prs -->