Don't assume test case for %time will finish in 0 time.

Closes gh-2899
Merge pull request #2900 from takluyver/i2899

Don't assume test case for %time will finish in 0 time

Closes gh-2899