Skip to content

Commit 747e540

Browse files
Merge pull request #65 from ThomasWaldmann/fix-32bit-overflow
test: fix integer overflow on 32-bit arches, fixes #47
2 parents c83458d + 7882de8 commit 747e540

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/test_examples.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ def tst_rounding(mnt_dir, ns_tol=0):
362362
os.mkdir(filename)
363363
fstat = os.lstat(filename)
364364

365-
# Approximately 100 years
366-
secs = 100 * 365 * 24 * 3600 + 999
365+
# Approximately 67 years, ending in 999.
366+
# Note: 67 years were chosen to avoid y2038 issues (1970 + 67 = 2037).
367+
# Testing these is **not** in scope of this test.
368+
secs = 67 * 365 * 24 * 3600 + 999
367369
# Max nanos
368370
nanos = _NANOS_PER_SEC - 1
369371

0 commit comments

Comments
 (0)