mahmoudimus / nose-timer

A timer plugin for nosetests (how much time does every test take?)
MIT License
126 stars 33 forks source link

fix ZeroDivisionError #85

Closed garbageek closed 6 years ago

garbageek commented 6 years ago

I use Django with nose. And in my tests I usually perform some preparations in setUpClass which executes before test method. And if I made a mistake in setUpClass I getting ZeroDivisionError: float division by zero. In that case total_time equals 0

e0ne commented 6 years ago

LGTM. CI failure is not related to the patch

skudriashev commented 6 years ago

@garbageek thanks for the fix!

garbageek commented 6 years ago

@skudriashev Could you build new version of python package?

skudriashev commented 6 years ago

@garbageek done.

garbageek commented 6 years ago

Great. Thanks for fast response