diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-21 12:49:26 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-21 12:49:26 +0200 |
commit | 30f5ad30542c63156e4babcab1e783ef44b09e15 (patch) | |
tree | 2bab1dd6ff3d877342d4f47b3728ae95f7e203e9 | |
parent | 434882af22b8c1941f078557b6411a1af63d099b (diff) | |
download | cython-30f5ad30542c63156e4babcab1e783ef44b09e15.tar.gz |
Try to make a test less flaky.
-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 |