summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-23 01:15:30 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-23 01:15:30 (GMT)
commit2b9af63b4f4757cccad70b76960cfe8c7b9e6a49 (patch)
tree276011f907fe83390f69e1e7c9aa99a23e4f0654 /Lib
parent2158231433c19e1e8eec24d8d053da2a02256747 (diff)
downloadcpython-2b9af63b4f4757cccad70b76960cfe8c7b9e6a49.zip
cpython-2b9af63b4f4757cccad70b76960cfe8c7b9e6a49.tar.gz
cpython-2b9af63b4f4757cccad70b76960cfe8c7b9e6a49.tar.bz2
Try to fix test_tarfile on AMD64 debian parallel 3.x
tarinfo.mtime is an int, whereas getmtime() is a float and it might be different by something like 3 µs.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tarfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 3a217dc..fd7ac2b 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -345,7 +345,7 @@ class MiscReadTest(CommonReadTest):
if sys.platform != "win32":
# Win32 has no support for fine grained permissions.
self.assertEqual(tarinfo.mode & 0o777, os.stat(path).st_mode & 0o777)
- self.assertEqual(tarinfo.mtime, os.path.getmtime(path))
+ self.assertEqual(tarinfo.mtime, int(os.path.getmtime(path)))
finally:
tar.close()