-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Refactor: move no_rerun
from test_import
and datetimetester
to test.support
#119659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
aaaand I found a bug: cpython/Lib/test/support/__init__.py Lines 1192 to 1208 in 0518edc
this code does not work well when applied to classes. proof (with cpython/Lib/test/datetimetester.py Lines 6385 to 6392 in 0518edc
Without:
Turns out it is not just "moving", I also have to fix it for both types and methods. |
Aaaand I found another one: cpython/Lib/test/test_datetime.py Lines 39 to 56 in 0518edc
|
And the whole Wow, what a ride! 😄 |
The tests were accidentally disabled by 2da0dc0, which didn't handle classes correctly. I considered updating no_rerun() to support classes, but the way test_datetime.py works would have made things fairly messy. Plus, it looks like the refleaks we had encountered before have been resolved.
…120180) The tests were accidentally disabled by 2da0dc0, which didn't handle classes correctly. I considered updating no_rerun() to support classes, but the way test_datetime.py works would have made things fairly messy. Plus, it looks like the refleaks we had encountered before have been resolved.
…120180) The tests were accidentally disabled by 2da0dc0, which didn't handle classes correctly. I considered updating no_rerun() to support classes, but the way test_datetime.py works would have made things fairly messy. Plus, it looks like the refleaks we had encountered before have been resolved.
Feature or enhancement
It is defined here:
cpython/Lib/test/test_import/__init__.py
Lines 123 to 139 in b407ad3
and here:
cpython/Lib/test/datetimetester.py
Lines 50 to 68 in b407ad3
Introduced in #119373
Linked PRs
@no_rerun
totest.support
#119660support.no_rerun
decorator #119675The text was updated successfully, but these errors were encountered: