Searched refs:format_duration (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_regrtest.py | 690 self.assertEqual(utils.format_duration(0), 692 self.assertEqual(utils.format_duration(1e-9), 694 self.assertEqual(utils.format_duration(10e-3), 696 self.assertEqual(utils.format_duration(1.5), 698 self.assertEqual(utils.format_duration(1), 700 self.assertEqual(utils.format_duration(2 * 60), 702 self.assertEqual(utils.format_duration(2 * 60 + 1), 704 self.assertEqual(utils.format_duration(3 * 3600), 706 self.assertEqual(utils.format_duration(3 * 3600 + 2 * 60 + 1), 708 self.assertEqual(utils.format_duration(3 * 3600 + 1),
|
D | regrtest.py | 273 def format_duration(seconds): function 808 running.append('%s (%s)' % (current_test, format_duration(dt))) 836 text += ' (%s)' % format_duration(test_time) 904 format_duration(test_time)) 1047 print("Total duration: %s" % format_duration(duration))
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | runtest_mp.py | 19 from test.libregrtest.utils import format_duration, print_warning 342 text = '%s (%s)' % (current_test_name, format_duration(dt)) 370 % (format_duration(self.ns.timeout), 371 format_duration(self.worker_timeout))) 417 text += ' (%s)' % format_duration(result.test_time)
|
D | main.py | 21 from test.libregrtest.utils import removepy, count, format_duration, printlist 362 print("- %s: %s" % (test, format_duration(test_time))) 399 msg += " (timeout: %s)" % format_duration(self.ns.timeout) 429 previous_test = "%s in %s" % (previous_test, format_duration(test_time)) 535 print("Total duration: %s" % format_duration(duration))
|
D | runtest.py | 16 from test.libregrtest.utils import format_duration, print_warning 82 text = '%s (%s)' % (text, format_duration(result.test_time))
|
D | utils.py | 8 def format_duration(seconds): function
|
/external/python/cpython3/Lib/test/ |
D | test_regrtest.py | 1287 self.assertEqual(utils.format_duration(0), 1289 self.assertEqual(utils.format_duration(1e-9), 1291 self.assertEqual(utils.format_duration(10e-3), 1293 self.assertEqual(utils.format_duration(1.5), 1295 self.assertEqual(utils.format_duration(1), 1297 self.assertEqual(utils.format_duration(2 * 60), 1299 self.assertEqual(utils.format_duration(2 * 60 + 1), 1301 self.assertEqual(utils.format_duration(3 * 3600), 1303 self.assertEqual(utils.format_duration(3 * 3600 + 2 * 60 + 1), 1305 self.assertEqual(utils.format_duration(3 * 3600 + 1),
|