diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2018-07-11 10:33:16 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-07-11 10:33:16 +0100 |
commit | 415f084ec1cb305930f352dbbb9b468e95c394f9 (patch) | |
tree | 22048f839a4d269d5a16ef9e90db2fea0d88eb6e | |
parent | 0a519c9772e2101c77848da6fa8bf9f8ca2ec56b (diff) |
Don't assume sub-second resolution for st_atime/st_mtime.
Fixes: #224
-rwxr-xr-x | test/test_examples.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_examples.py b/test/test_examples.py index 60b6888..995e624 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -593,8 +593,8 @@ def tst_utimens(mnt_dir, ns_tol=0): fstat = os.lstat(filename) - assert abs(fstat.st_atime - atime) < 1e-3 - assert abs(fstat.st_mtime - mtime) < 1e-3 + assert abs(fstat.st_atime - atime) < 1 + assert abs(fstat.st_mtime - mtime) < 1 if sys.version_info >= (3,3): assert abs(fstat.st_atime_ns - atime_ns) <= ns_tol assert abs(fstat.st_mtime_ns - mtime_ns) <= ns_tol |