Skip to content

Commit b1511d2

Browse files
author
atollk
committed
Fixed py27-scandir test ?
1 parent 762ee06 commit b1511d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_osfs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def test_copy_preserve_time(self):
111111
self.assertTrue(self.fs.exists("bar/file.txt"))
112112

113113
dst_info = self.fs.getinfo("bar/file.txt", namespaces)
114-
self.assertAlmostEqual(dst_info.modified, src_info.modified, places=2)
114+
delta = dst_info.modified - src_info.modified
115+
self.assertAlmostEqual(delta.total_seconds(), 0, places=2)
115116

116117
@unittest.skipUnless(osfs.sendfile, "sendfile not supported")
117118
@unittest.skipIf(

0 commit comments

Comments
 (0)