def report_tests(output, flaky_tests):
 tests = list((test.id() for (test, _) in flaky_tests))
 for test in sorted(tests):
  output.write('{}\n'.format(test))

def report_tests ( output , flaky_tests ) : tests = list ( ( test . id ( ) for ( test , _ ) in flaky_tests ) ) for test in sorted ( tests ) : output . write ( '{}\n' . format ( test ) )
print all flaky tests .