Commit Graph

18 Commits

Author SHA1 Message Date
meejah
7a5b7487ef Merge branch 'master' into websocket-support-on-iosim-tests-master 2021-04-15 12:19:16 -06:00
meejah
a2866c55c9 remove 'from __future__' imports 2021-04-15 07:40:15 -06:00
meejah
1efc1313db py3-only imports 2021-04-14 15:32:32 -06:00
meejah
5b7ec9ef4c move usage-tracking stuff to own module 2021-04-14 15:05:44 -06:00
meejah
7e58767ac1 pyflakes 2021-04-14 15:05:44 -06:00
meejah
ca55509763 fix global stats-gathering / recording 2021-04-14 15:05:44 -06:00
meejah
60e70bac3c cleanup / dead code 2021-04-14 15:05:44 -06:00
meejah
03906ffe0d pass actual database, not config 2021-04-14 15:05:44 -06:00
meejah
3ae3bb7443 cleanup, remove dead code 2021-04-14 15:05:44 -06:00
meejah
b7bcdfdca3 more stats / recording works 2021-04-14 15:05:44 -06:00
meejah
0434296415 still support py27 2021-04-02 19:57:22 -06:00
meejah
85f3f5b63c 'mock' location 2021-04-02 16:00:11 -06:00
Brian Warner
a9680918b9 test_stats: try more realistic fake time.time()
Maybe windows+py36 was failing because "456" is too small of a value, and the
OS time libraries can't figure out UTC for something back in 1970. Switch to
a fixed timestamp from just a few minutes ago, to see if it likes 2018
better.
2018-02-19 13:23:40 -08:00
Brian Warner
071471a353 test_stats: mock time.time() with a float, to appease windows
For some reason, the appveyor (windows) tests fail on py36 with an OSError
during an internal (twisted.python.log) call to datetime.fromtimestamp().
It's possible that my mock times are too old (I'm using made-up values like
"456"), but maybe it's just that real time.time() returns a float instead of
an integer.
2018-02-19 13:12:14 -08:00
Brian Warner
83e1c8acfe make it all basically work, improve test coverage 2017-11-07 19:39:01 -06:00
Brian Warner
849a90f0fa test_stats: more test coverage 2017-09-13 18:26:54 -07:00
Brian Warner
a1333e51cd fix unicode/json on py3 2017-09-13 18:18:29 -07:00
Brian Warner
2e0c97cea8 test_stats: start improving coverage 2017-09-13 18:14:41 -07:00