We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 762ee06 commit b1511d2Copy full SHA for b1511d2
tests/test_osfs.py
@@ -111,7 +111,8 @@ def test_copy_preserve_time(self):
111
self.assertTrue(self.fs.exists("bar/file.txt"))
112
113
dst_info = self.fs.getinfo("bar/file.txt", namespaces)
114
- self.assertAlmostEqual(dst_info.modified, src_info.modified, places=2)
+ delta = dst_info.modified - src_info.modified
115
+ self.assertAlmostEqual(delta.total_seconds(), 0, places=2)
116
117
@unittest.skipUnless(osfs.sendfile, "sendfile not supported")
118
@unittest.skipIf(
0 commit comments