Ran Benita
c3e6e2e8c8
Fix flaky TestDurations test
...
TestDurations tests the `--durations=N` functionality which reports N
slowest tests, with durations <= 0.005s not shown by default.
The test relies on real time.sleep() (in addition to the code which uses
time.perf_counter()) which makes it flaky and inconsistent between
platforms.
Instead of trying to tweak it more, make it use fake time instead. The
way it is done is a little hacky but seems to work.
2020-04-06 23:49:46 +03:00
..
2020-04-03 00:56:53 +02:00
2020-03-30 21:55:12 +02:00
2019-06-03 12:08:01 -03:00
2019-10-26 16:28:17 +03:00
2020-02-12 16:07:57 +01:00
2020-01-25 18:14:49 +01:00
2020-02-22 23:32:55 +01:00
2020-04-06 23:49:46 +03:00
2020-02-20 18:51:41 -03:00
2020-03-30 21:53:07 +02:00
2020-03-27 18:40:23 +03:00
2020-04-04 12:33:15 +02:00
2020-03-27 18:40:23 +03:00
2020-02-19 21:33:03 +01:00
2020-03-27 18:40:23 +03:00
2020-03-03 18:58:14 -03:00
2020-01-15 11:20:00 +01:00
2020-03-07 23:47:55 +01:00
2020-02-10 23:55:06 +02:00
2020-01-22 11:03:45 -03:00
2020-02-24 15:18:08 +01:00
2019-07-04 15:00:10 +02:00
2020-02-10 21:12:37 +01:00
2020-02-21 12:52:31 +01:00
2020-02-11 19:22:28 -03:00
2020-02-28 14:34:44 +02:00
2020-02-11 19:22:28 -03:00
2020-02-10 23:55:06 +02:00
2020-02-03 14:04:16 +01:00
2019-06-03 12:08:02 -03:00
2020-01-15 13:00:46 +01:00
2020-01-23 10:45:31 +01:00
2020-02-11 19:22:28 -03:00
2019-08-30 15:34:03 -04:00
2019-06-24 09:48:38 -07:00
2020-02-10 23:55:06 +02:00
2020-03-04 05:33:50 +01:00
2020-02-18 23:17:27 +02:00
2020-04-04 12:33:15 +02:00
2020-03-12 20:52:22 -03:00
2019-10-27 15:16:24 +00:00
2020-02-21 14:37:56 +01:00
2020-02-28 18:38:07 +01:00
2020-02-10 23:55:06 +02:00
2019-11-19 12:42:11 -03:00
2019-11-16 18:55:32 +01:00
2020-01-11 23:05:12 +01:00
2020-03-06 11:42:20 +02:00
2020-04-04 17:27:59 +03:00
2020-04-04 14:25:34 +02:00
2020-03-30 21:55:12 +02:00
2019-06-15 11:48:34 -03:00
2020-03-27 09:54:20 -03:00