Skip to content

Python 3.11.7 Test Suite Failure in Windows - Interpreter has more than one thread #113026

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

Closed
plooploops opened this issue Dec 12, 2023 · 1 comment
Labels
3.11 only security fixes tests Tests in the Lib/test dir topic-subinterpreters type-bug An unexpected behavior, bug, or error

Comments

@plooploops
Copy link

plooploops commented Dec 12, 2023

Bug report

Bug description:

I was running the python 3.11.7 test suite in a windows container (e.g. with python -m test --ignorefile C:\path\to\my\ignorefile) and noticed the following Runtime errors when running the test suite:

test test__xxsubinterpreters failed -- Traceback (most recent call last):
  File "C:\path\to\cpython\Lib\test\test__xxsubinterpreters.py", line 489, in test_main
    self.assertTrue(interpreters.is_running(main))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: interpreter has more than one thread
test test_interpreters failed -- Traceback (most recent call last):
  File "C:\path\to\cpython\Lib\test\test_interpreters.py", line 247, in test_main
    self.assertTrue(main.is_running())
                    ^^^^^^^^^^^^^^^^^
  File "C:\path\to\cpython\Lib\test\support\interpreters.py", line 82, in is_running
    return _interpreters.is_running(self._id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: interpreter has more than one thread

As a workaround I can add the test cases to the ignore file, but it would be worth understanding if this is a regression.

  • I was able to run python -m test --ignorefile C:\path\to\my\ignorefile for python 3.11.6 and I did not need to ignore these tests to complete the test suite in a windows container

CPython versions tested on:

3.11.7

Operating systems tested on:

Windows (windows servercore ltsc2019)

@aisk
Copy link
Contributor

aisk commented Jun 5, 2024

This has been fixed by #109921, and that PR was backported to the 3.12 branch.

But as https://devguide.python.org/versions/ shows, 3.11 will only accept security fixes starting from two months ago, so I think we won't backport that PR to 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes tests Tests in the Lib/test dir topic-subinterpreters type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

5 participants