-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
test_unittest failure triggered by test_import + test_importlib #108927
Comments
|
libregrtest does this for every tested module. Now this sequence is clear:
You can use other tests which import |
It breaks import machinery if the test module has submodules used in other tests.
It breaks import machinery if the test module has submodules used in other tests.
test_compileall yet one test which can fail after test_importlib.
#108952 fixes all such cases. |
…blem (pythonGH-108929) (cherry picked from commit 3f89b25) Co-authored-by: Nikita Sobolev <[email protected]>
I am also seeing this in the 3.11.6 release and can confirm that #108929 fixes it. |
Actually when I run just |
…blem (pythonGH-108929) (cherry picked from commit 3f89b25) Co-authored-by: Nikita Sobolev <[email protected]>
It breaks import machinery if the test module has submodules used in other tests.
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70f) Co-authored-by: Serhiy Storchaka <[email protected]>
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70f) Co-authored-by: Serhiy Storchaka <[email protected]>
…08952) (ПР-112712) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70f) Co-authored-by: Serhiy Storchaka <[email protected]>
…08952) (ПР-112711) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70f) Co-authored-by: Serhiy Storchaka <[email protected]>
Nice! |
…112765) Co-authored-by: Victor Stinner <[email protected]>
…allation (pythonGH-112765) (cherry picked from commit f8c0198) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…allation (pythonGH-112765) (cherry picked from commit f8c0198) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…on (GH-112765) (GH-112784) (cherry picked from commit f8c0198) Co-authored-by: Victor Stinner <[email protected]>
…on (GH-112765) (GH-112785) (cherry picked from commit f8c0198) Co-authored-by: Victor Stinner <[email protected]>
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests.
pythonGH-112765) Co-authored-by: Victor Stinner <[email protected]>
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests.
pythonGH-112765) Co-authored-by: Victor Stinner <[email protected]>
Bug report
Bug description:
test_unittest fails if (and only if) test_import and test_importlib are run (in the same process) before it:
CPython versions tested on:
3.12, CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: