diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2f1e5e971e8e9b..ed85d185412ea8 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -982,8 +982,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}..A.B.X", report)