Skip to content

gh-129766: Fix crash on calling warnings._release_lock with no lock - #129771

Merged
sobolevn merged 1 commit into
python:mainfrom
sobolevn:issue-129766
Feb 7, 2025
Merged

sobolevn merged 1 commit into
python:mainfrom
sobolevn:issue-129766

Conversation

@sobolevn

@sobolevn sobolevn commented Feb 7, 2025 •

Copy link
Copy Markdown
Member

After:

>>> import warnings
>>> warnings._release_lock()
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    warnings._release_lock()
    ~~~~~~~~~~~~~~~~~~~~~~^^
RuntimeError: cannot release un-acquired lock

Refs #128386
Refs #128384

@sobolevn
sobolevn merged commit ae132ed into python:main Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants