Skip to content

Commit 0234e5b

Browse files
committed
Warnings context manager is not thread-safe
1 parent a429803 commit 0234e5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,7 @@ def test_reset_attributes(self):
20222022
self.assertEqual(exc.name, None)
20232023
self.assertEqual(exc.path, None)
20242024

2025+
@support.thread_unsafe("check_warnings")
20252026
def test_non_str_argument(self):
20262027
# Issue #15778
20272028
with check_warnings(('', BytesWarning), quiet=True):

0 commit comments

Comments
 (0)