File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2340,10 +2340,7 @@ def wrapper(*args, **kwargs):
2340
2340
errno = getattr (err .reason , "errno" , None )
2341
2341
2342
2342
if errno in skip_errnos :
2343
- skip (
2344
- "Skipping test due to known errno"
2345
- f" and error { err } "
2346
- )
2343
+ skip ("Skipping test due to known errno" f" and error { err } " )
2347
2344
2348
2345
e_str = str (err )
2349
2346
@@ -2359,10 +2356,7 @@ def wrapper(*args, **kwargs):
2359
2356
if raise_on_error or can_connect (url , error_classes ):
2360
2357
raise
2361
2358
else :
2362
- skip (
2363
- "Skipping test due to lack of connectivity"
2364
- f" and error { err } "
2365
- )
2359
+ skip ("Skipping test due to lack of connectivity" f" and error { err } " )
2366
2360
2367
2361
return wrapper
2368
2362
@@ -2623,12 +2617,12 @@ class for all warnings. To check that no warning is returned,
2623
2617
)
2624
2618
)
2625
2619
if expected_warning :
2626
- msg = f"Did not see expected warning of class { expected_warning .__name__ !r} ."
2620
+ msg = (
2621
+ f"Did not see expected warning of class { expected_warning .__name__ !r} ."
2622
+ )
2627
2623
assert saw_warning , msg
2628
2624
if raise_on_extra_warnings and extra_warnings :
2629
- raise AssertionError (
2630
- f"Caused unexpected warning(s): { extra_warnings !r} ."
2631
- )
2625
+ raise AssertionError (f"Caused unexpected warning(s): { extra_warnings !r} ." )
2632
2626
2633
2627
2634
2628
class RNGContext :
You can’t perform that action at this time.
0 commit comments