X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/09a2e88c51e5432e607f2a38466e55b4ba15e887..b6e15a581be2e5b2387fe18ecb01714fbc21d3aa:/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):