File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1178,11 +1178,12 @@ class X(Exception):
11781178 for moduleName in 'builtins' , '__main__' , 'some_module' :
11791179 with self .subTest (moduleName = moduleName ):
11801180 A .B .X .__module__ = moduleName
1181- with test .support .captured_stderr () as stderr , \
1182- test . support . swap_attr ( sys , 'unraisablehook' ,
1183- sys . __unraisablehook__ ):
1181+ with test .support .captured_stderr () as stderr , test . support . swap_attr (
1182+ sys , 'unraisablehook' , sys . __unraisablehook__
1183+ ):
11841184 expected = self .write_unraisable_exc (
1185- A .B .X (), "msg" , "obj" );
1185+ A .B .X (), "msg" , "obj"
1186+ )
11861187 report = stderr .getvalue ()
11871188 self .assertIn (A .B .X .__qualname__ , report )
11881189 if moduleName in ['builtins' , '__main__' ]:
You can’t perform that action at this time.
0 commit comments