gh-119659: Fix `support.no_rerun` decorator by sobolevn · Pull Request #119675 · python/cpython
I've cropped some unrelated parts of the output out.
Before
On class:
» ./python.exe -m test test_datetime -m test_utc_capi -v -R 3:3
----------------------------------------------------------------------
Ran 0 tests in 0.000s
NO TESTS RAN
test_datetime ran no tests
== Tests result: NO TESTS RAN ==
1 test run no tests:
test_datetime
On method:
» ./python.exe -m test test_import -m test_basic_multiple_interpreters_deleted_no_reset -R 3:3 -v
test_basic_multiple_interpreters_deleted_no_reset (test.test_import.SinglephaseInitTests.test_basic_multiple_interpreters_deleted_no_reset) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.059s
OK
X
test_basic_multiple_interpreters_deleted_no_reset (test.test_import.SinglephaseInitTests.test_basic_multiple_interpreters_deleted_no_reset) ... skipped 'rerun not possible; module state is never cleared (see gh-102251)'
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK (skipped=1)
.
After
On class:
» ./python.exe -m test test_datetime -m test_utc_capi -v -R 3:3
test_utc_capi (test.datetimetester.CapiTest_Pure.test_utc_capi) ... skipped 'Not relevant in pure Python'
test_utc_capi (test.datetimetester.CapiTest_Fast.test_utc_capi) ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.000s
OK (skipped=1)
X
setUpClass (test.datetimetester.CapiTest_Pure) ... skipped 'the encapsulated datetime C API does not support reloading'
setUpClass (test.datetimetester.CapiTest_Fast) ... skipped 'the encapsulated datetime C API does not support reloading'
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK (skipped=2)
X
On method:
» ./python.exe -m test test_import -m test_basic_multiple_interpreters_deleted_no_reset -R 3:3 -v
test_basic_multiple_interpreters_deleted_no_reset (test.test_import.SinglephaseInitTests.test_basic_multiple_interpreters_deleted_no_reset) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.056s
OK
X
.test_basic_multiple_interpreters_deleted_no_reset (test.test_import.SinglephaseInitTests.test_basic_multiple_interpreters_deleted_no_reset) ... skipped 'rerun not possible; module state is never cleared (see gh-102251)'
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK (skipped=1)
.