-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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 <mail@sobolevn.me>
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 <mail@sobolevn.me>
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 <storchaka@gmail.com>
…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 <storchaka@gmail.com>
Nice! |
…112765) Co-authored-by: Victor Stinner <vstinner@python.org>
…allation (pythonGH-112765) (cherry picked from commit f8c0198) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
…allation (pythonGH-112765) (cherry picked from commit f8c0198) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests.
pythonGH-112765) Co-authored-by: Victor Stinner <vstinner@python.org>
…nGH-108952) It breaks import machinery if the test module has submodules used in other tests.
pythonGH-112765) Co-authored-by: Victor Stinner <vstinner@python.org>
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: