summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-07-12 18:07:59 (GMT)
committerGitHub <noreply@github.com>2023-07-12 18:07:59 (GMT)
commite4b88c1e4ac129b36f99a534387d64f7b8cda8ef (patch)
tree4a8e0dc10501d120508a2bf2b9f4369420775133 /Misc
parentdd1884dc5dc1a540c60e98ea1bc482a51d996564 (diff)
downloadcpython-e4b88c1e4ac129b36f99a534387d64f7b8cda8ef.zip
cpython-e4b88c1e4ac129b36f99a534387d64f7b8cda8ef.tar.gz
cpython-e4b88c1e4ac129b36f99a534387d64f7b8cda8ef.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-29-15-10-44.gh-issue-106236.EAIX4l.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-06-29-15-10-44.gh-issue-106236.EAIX4l.rst b/Misc/NEWS.d/next/Library/2023-06-29-15-10-44.gh-issue-106236.EAIX4l.rst
new file mode 100644
index 0000000..036bdb6
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-29-15-10-44.gh-issue-106236.EAIX4l.rst
@@ -0,0 +1,2 @@
+Replace ``assert`` statements with ``raise RuntimeError`` in
+:mod:`threading`, so that ``_DummyThread`` cannot be joined even with ``-OO``.