X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0066dc77abc461090fe98bcee7c6e324a5ca43a1..1767cc94ddd427c6610c82e1b27f6a9f6793b39a:/services/fuse/tests/test_mount.py diff --git a/services/fuse/tests/test_mount.py b/services/fuse/tests/test_mount.py index 4c70ce98d3..f623ae5386 100644 --- a/services/fuse/tests/test_mount.py +++ b/services/fuse/tests/test_mount.py @@ -267,14 +267,22 @@ class FuseSharedTest(MountTestBase): # check mtime on template st = os.stat(pipeline_template_path) - self.assertEqual(st.st_mtime, 1397493304) + try: + mtime = st.st_mtime_ns / 1000000000 + except AttributeError: + mtime = st.st_mtime + self.assertEqual(mtime, 1397493304) # check mtime on collection st = os.stat(os.path.join( self.mounttmp, 'FUSE User', 'collection #1 owned by FUSE')) - self.assertEqual(st.st_mtime, 1391448174) + try: + mtime = st.st_mtime_ns / 1000000000 + except AttributeError: + mtime = st.st_mtime + self.assertEqual(mtime, 1391448174) class FuseHomeTest(MountTestBase):