aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_thread.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-11-03 09:45:53 +0200
committerGitHub <noreply@github.com>2023-11-03 09:45:53 +0200
commit26c0e5e03a8603eccfd98045bc69fde2e24682e3 (patch)
tree01d7dc811329b0387323350fa881a3301affe461 /Lib/test/test_thread.py
parent0d3df272fbd131bff7f02d4d4279ad1e35081121 (diff)
downloadcpython-26c0e5e03a8603eccfd98045bc69fde2e24682e3.tar.gz
cpython-26c0e5e03a8603eccfd98045bc69fde2e24682e3.zip
gh-108082: Remove _PyErr_WriteUnraisableMsg() (GH-111643)
Replace the remaining calls with PyErr_FormatUnraisable().
Diffstat (limited to 'Lib/test/test_thread.py')
-rw-r--r--Lib/test/test_thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
index 8656fbdd83e..831aaf5b6a7 100644
--- a/Lib/test/test_thread.py
+++ b/Lib/test/test_thread.py
@@ -155,9 +155,9 @@ class ThreadRunningTests(BasicThreadTest):
started.acquire()
self.assertEqual(str(cm.unraisable.exc_value), "task failed")
- self.assertIs(cm.unraisable.object, task)
+ self.assertIsNone(cm.unraisable.object)
self.assertEqual(cm.unraisable.err_msg,
- "Exception ignored in thread started by")
+ f"Exception ignored in thread started by {task!r}")
self.assertIsNotNone(cm.unraisable.exc_traceback)