]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106236: Replace `assert` with `raise RuntimeError` in `threading.py` (#106237)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 12 Jul 2023 18:07:59 +0000 (21:07 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 18:07:59 +0000 (11:07 -0700)
commite4b88c1e4ac129b36f99a534387d64f7b8cda8ef
tree4a8e0dc10501d120508a2bf2b9f4369420775133
parentdd1884dc5dc1a540c60e98ea1bc482a51d996564
gh-106236: Replace `assert` with `raise RuntimeError` in `threading.py` (#106237)

Replace `assert` with `raise ` in `threading.py` so that -OO does not alter _DummyThread behavior.
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2023-06-29-15-10-44.gh-issue-106236.EAIX4l.rst [new file with mode: 0644]