Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_sys from CPython 3.10.5
  • Loading branch information
youknowone committed Aug 22, 2022
commit 2d27f21114df3e650d158ae17ec90fe7f9b66c77
6 changes: 3 additions & 3 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import builtins
import codecs
# import gc
import gc
import locale
import operator
import os
Expand Down Expand Up @@ -1111,8 +1111,8 @@ class X(Exception):
with test.support.captured_stderr() as stderr, \
test.support.swap_attr(sys, 'unraisablehook',
sys.__unraisablehook__):
expected = self.write_unraisable_exc(
A.B.X(), "msg", "obj");
expected = self.write_unraisable_exc(
A.B.X(), "msg", "obj");
report = stderr.getvalue()
testName = 'test_original_unraisablehook_exception_qualname'
self.assertIn(f"{testName}.<locals>.A.B.X", report)
Expand Down