# HG changeset patch # User Ludovic Chabant # Date 1477281661 25200 # Node ID 8ac2d6045d1d011cf316d4c01a5f88e0989a84b4 # Parent fd694f1297c7c64caaf368704e33e25c6d82e89b tests: Fix for time comparisons. diff -r fd694f1297c7 -r 8ac2d6045d1d tests/conftest.py --- a/tests/conftest.py Mon Oct 10 21:41:59 2016 -0700 +++ b/tests/conftest.py Sun Oct 23 21:01:01 2016 -0700 @@ -546,7 +546,7 @@ # values are within a few seconds of each other (usually 0 or 1). right_time_str = right[i:i + len(test_time_iso8601)] right_time = time.strptime(right_time_str, '%Y-%m-%dT%H:%M:%SZ') - left_time = time.localtime(ctx.time) + left_time = time.gmtime(ctx.time) difference = time.mktime(left_time) - time.mktime(right_time) print("Got time difference: %d" % difference) if abs(difference) <= 2: