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