Skip to content
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

SystemError occured in Windows Python 3.13.0 #13024

Open
KafCoppelia opened this issue Dec 3, 2024 · 2 comments
Open

SystemError occured in Windows Python 3.13.0 #13024

KafCoppelia opened this issue Dec 3, 2024 · 2 comments

Comments

@KafCoppelia
Copy link

I encountered the following error when using Pytest 8.3.3 in Windows Python 3.13.0 in GitHub Actions:

> Run poetry run pytest --cov-append --cov-report=xml --junitxml=junit.xml
Exception ignored on threading shutdown:
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.13.0\x64\Lib\threading.py", line 1524, in _shutdown
    if _main_thread._handle.is_done() and _is_main_interpreter():
SystemError: <method 'is_done' of '_thread._ThreadHandle' objects> returned a result with an exception set
Error: Process completed with exit code 1.

I saw a similar issue in the cpython repository: python/cpython#125842. I wonder if this is just a bug with Python 3.13.0 and not pytest's.

@RonnyPfannschmidt
Copy link
Member

At first glance this looks exactly like the linked bug and it will be fixed with next python release

@lkstrp
Copy link

lkstrp commented Dec 6, 2024

I have something similar and Python 3.13.1 does not fix it. Not sure if this is related at all, but it seems odd.

coverage run -m pytest
coverage xml
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
env:
  MPLBACKEND: Agg
  pythonLocation: C:\hostedtoolcache\windows\Python\3.13.1\x64
  PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.13.1\x64/lib/pkgconfig
  Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.1\x64
  Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.1\x64
  Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.1\x64
No data to report.
Error: Process completed with exit code 1.

See failed run here
Only windows and python 3.13.0 / 3.13.1 is an issue.

pytest==8.3.4
coverage==7.6.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants