@@ -1390,23 +1390,17 @@ async def run_scenario(self, spec, uri=None):
13901390
13911391 # Handle flaky tests.
13921392 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.*" ),
14051399 ]
1406- for flaky_test in flaky_tests :
1400+ for reason , flaky_test in flaky_tests :
14071401 if re .match (flaky_test , self .id ()) is not None :
14081402 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 )
14101404 if "csot" in func_name .lower ():
14111405 options ["max_runs" ] = 3
14121406 options ["affects_cpython_linux" ] = True
0 commit comments