[Python-checkins] r85809 - python/branches/py3k/Lib/test/test_tarfile.py

martin.v.loewis python-checkins at python.org
Sat Oct 23 21:02:30 CEST 2010


Author: martin.v.loewis
Date: Sat Oct 23 21:02:30 2010
New Revision: 85809

Log:
Revert r85801. The test ought to pass without rounding.


Modified:
   python/branches/py3k/Lib/test/test_tarfile.py

Modified: python/branches/py3k/Lib/test/test_tarfile.py
==============================================================================
--- python/branches/py3k/Lib/test/test_tarfile.py	(original)
+++ python/branches/py3k/Lib/test/test_tarfile.py	Sat Oct 23 21:02:30 2010
@@ -345,7 +345,7 @@
                 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, int(os.path.getmtime(path)))
+                self.assertEqual(tarinfo.mtime, os.path.getmtime(path))
         finally:
             tar.close()
 


More information about the Python-checkins mailing list