620
621
result.extractBenchmarkTime(self)
621
622
timed_string = result._testTimeString()
622
623
# without explicit benchmarking, we should get a simple time.
624
625
# if a benchmark time is given, we want a x of y style result.
625
626
self.time(time.sleep, 0.001)
626
627
result.extractBenchmarkTime(self)
627
628
timed_string = result._testTimeString()
629
631
# extracting the time from a non-bzrlib testcase sets to None
630
632
result._recordTestStartTime()
631
633
result.extractBenchmarkTime(
632
634
unittest.FunctionTestCase(self.test_elapsed_time_with_benchmarking))
633
635
timed_string = result._testTimeString()
635
637
# cheat. Yes, wash thy mouth out with soap.