From 0e81900675fca3ad6c3ca5cc51269f67ec1cf609 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 18 Jan 2012 14:08:15 -0800 Subject: [PATCH] mtime tests at integral second resolution (#298) --- test/test_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_db.py b/test/test_db.py index 27b51d84e..8a1b29ab9 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -750,7 +750,7 @@ class MtimeTest(unittest.TestCase): os.remove(self.ipath) def _mtime(self): - return os.path.getmtime(self.ipath) + return int(os.path.getmtime(self.ipath)) def test_mtime_initially_up_to_date(self): self.assertGreaterEqual(self.i.mtime, self._mtime())