@@ -1390,23 +1390,17 @@ async def run_scenario(self, spec, uri=None):
1390
1390
1391
1391
# Handle flaky tests.
1392
1392
flaky_tests = [
1393
- # PYTHON-5170
1394
- ".*test_discovery_and_monitoring.*" ,
1395
- # PYTHON-5174
1396
- ".*Driver_extends_timeout_while_streaming" ,
1397
- # PYTHON-5315
1398
- ".*TestSrvPolling.test_recover_from_initially_.*" ,
1399
- # PYTHON-4987
1400
- ".*UnknownTransactionCommitResult_labels_to_connection_errors" ,
1401
- # PYTHON-3689
1402
- ".*TestProse.test_load_balancing" ,
1403
- # PYTHON-3522
1404
- ".*csot.*" ,
1393
+ ("PYTHON-5170" , ".*test_discovery_and_monitoring.*" ),
1394
+ ("PYTHON-5174" , ".*Driver_extends_timeout_while_streaming" ),
1395
+ ("PYTHON-5315" , ".*TestSrvPolling.test_recover_from_initially_.*" ),
1396
+ ("PYTHON-4987" , ".*UnknownTransactionCommitResult_labels_to_connection_errors" ),
1397
+ ("PYTHON-3689" , ".*TestProse.test_load_balancing" ),
1398
+ ("PYTHON-3522" , ".*csot.*" ),
1405
1399
]
1406
- for flaky_test in flaky_tests :
1400
+ for reason , flaky_test in flaky_tests :
1407
1401
if re .match (flaky_test , self .id ()) is not None :
1408
1402
func_name = self .id ()
1409
- options = dict (reset_func = self .asyncSetUp , func_name = func_name )
1403
+ options = dict (reason = reason , reset_func = self .asyncSetUp , func_name = func_name )
1410
1404
if "csot" in func_name .lower ():
1411
1405
options ["max_runs" ] = 3
1412
1406
options ["affects_cpython_linux" ] = True
0 commit comments