diff options
-rw-r--r-- | tests/run/time_pxd.pyx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run/time_pxd.pyx b/tests/run/time_pxd.pyx index 91e6e8d24..f8bf9d66d 100644 --- a/tests/run/time_pxd.pyx +++ b/tests/run/time_pxd.pyx @@ -56,4 +56,9 @@ def test_localtime(): ltp = time.localtime() ltc = ctime.localtime() + if ltp.tm_sec != ltc.tm_sec: + # or three times in a row... + ltp = time.localtime() + ltc = ctime.localtime() + return ltp, ltc |