os.path.getmtime may return float in newer Pythons; compensate in test case
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 17 Feb 2008 10:37:40 +0000 (11:37 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 17 Feb 2008 10:37:40 +0000 (11:37 +0100)
src/test/test_shelf.py

index c0d51bd..c835650 100755 (executable)
@@ -901,7 +901,7 @@ class TestImageVersion(TestShelfFixture):
         imageversion = self.shelf.getImageVersionByLocation(
             os.path.join(PICDIR, "arlaharen.png"))
         t = imageversion.getModificationTime()
-        assert isinstance(t, int)
+        assert isinstance(t, (int, float))
         assert t > 0
 
     def test_getSize(self):