Commit b7bfcc4
bypass freezegun if installed (#185)
freezegun is simple package frequently used in tests to stop the
clock. When active on a class, xmlrunner reports that all its tests took
zero seconds, which is obviously incorrect. To easily bypass this
without making the code aware of freezegun, we import `time.time()`
by value.1 parent ed3fb0b commit b7bfcc4
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
297 | | - | |
| 300 | + | |
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
| |||
0 commit comments