gh-118079: Fix requires_singlephase_init helper#118081
Merged
colesbury merged 1 commit intopython:mainfrom Apr 19, 2024
Merged
Conversation
Member
Author
|
Before this pr: ./python.exe -m test -v test_import -m test_disallowed_reimport
== CPython 3.13.0a6+ (heads/issue-118079:f6225f5075, Apr 19 2024, 09:10:18) [Clang 15.0.0 (clang-1500.1.0.2.5)]
== macOS-14.2.1-arm64-arm-64bit-Mach-O little-endian
== Python build: debug
== cwd: /Users/admin/Projects/cpython/build/test_python_worker_28793æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 2142684577
0:00:00 load avg: 6.36 Run 1 test sequentially
0:00:00 load avg: 6.36 [1/1] test_import
test_disallowed_reimport (test.test_import.SubinterpImportTests.test_disallowed_reimport) ... /Users/admin/Projects/cpython/Lib/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method _id of <test.test_import.SubinterpImportTests testMethod=test_disallowed_reimport>>)
return self.run(*args, **kwds)
ok
----------------------------------------------------------------------
Ran 1 test in 0.002s
OK
== Tests result: SUCCESS ==
1 test OK.
Total duration: 390 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered)
Result: SUCCESSDebug free-threaded build: ./python.exe -m test -v test_import -m test_disallowed_reimport
== CPython 3.13.0a6+ (heads/issue-118079:f6225f5075, Apr 19 2024, 09:17:19) [Clang 15.0.0 (clang-1500.1.0.2.5)]
== macOS-14.2.1-arm64-arm-64bit-Mach-O little-endian
== Python build: free_threading debug
== cwd: /Users/admin/Projects/cpython/build/test_python_worker_36806æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 2535519029
0:00:00 load avg: 87.40 Run 1 test sequentially
0:00:00 load avg: 87.40 [1/1] test_import
test_disallowed_reimport (test.test_import.SubinterpImportTests.test_disallowed_reimport) ... skipped ''
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK (skipped=1)
== Tests result: SUCCESS ==
1 test OK.
Total duration: 188 ms
Total tests: run=1 (filtered) skipped=1
Total test files: run=1/1 (filtered)
Result: SUCCESSAfter this PR: Default debug build: ./python.exe -m test -v test_import -m test_disallowed_reimport
== CPython 3.13.0a6+ (heads/issue-118079:f6225f5075, Apr 19 2024, 09:10:18) [Clang 15.0.0 (clang-1500.1.0.2.5)]
== macOS-14.2.1-arm64-arm-64bit-Mach-O little-endian
== Python build: debug
== cwd: /Users/admin/Projects/cpython/build/test_python_worker_28862æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 3757181916
0:00:00 load avg: 4.83 Run 1 test sequentially
0:00:00 load avg: 4.83 [1/1] test_import
test_disallowed_reimport (test.test_import.SubinterpImportTests.test_disallowed_reimport) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.038s
OK
== Tests result: SUCCESS ==
1 test OK.
Total duration: 232 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered)
Result: SUCCESSDebug free-threaded build: ./python.exe -m test -v test_import -m test_disallowed_reimport
== CPython 3.13.0a6+ (heads/issue-118079:f6225f5075, Apr 19 2024, 09:17:19) [Clang 15.0.0 (clang-1500.1.0.2.5)]
== macOS-14.2.1-arm64-arm-64bit-Mach-O little-endian
== Python build: free_threading debug
== cwd: /Users/admin/Projects/cpython/build/test_python_worker_36855æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 2460420013
0:00:00 load avg: 38.83 Run 1 test sequentially
0:00:00 load avg: 38.83 [1/1] test_import
test_disallowed_reimport (test.test_import.SubinterpImportTests.test_disallowed_reimport) ... skipped 'gh-117694: free-threaded build does not currently support single-phase init modules in sub-interpreters'
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK (skipped=1)
== Tests result: SUCCESS ==
1 test OK.
Total duration: 411 ms
Total tests: run=1 (filtered) skipped=1
Total test files: run=1/1 (filtered)
Result: SUCCESS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before this PR tests which decorated with a
requires_singlephase_inithelper simply did not run because of an incorrect call to therequires_gil_enabledhelper.test_importraises aDeprecationWarning#118079