Skip to content

Commit

Permalink
Lower sensitivity for access time tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Oct 10, 2023
1 parent c91a989 commit 0234532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyfakefs/tests/fake_filesystem_shutil_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test_copystat(self):
src_stat = os.stat(src_file)
dst_stat = os.stat(dst_file)
self.assertEqual(src_stat.st_mode, dst_stat.st_mode)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=2)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=0)
self.assertAlmostEqual(src_stat.st_mtime, dst_stat.st_mtime, places=2)

@unittest.skipIf(IS_PYPY, "Functionality not supported in PyPy")
Expand All @@ -255,7 +255,7 @@ def test_copy2(self):
src_stat = os.stat(src_file)
dst_stat = os.stat(dst_file)
self.assertEqual(src_stat.st_mode, dst_stat.st_mode)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=2)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=0)
self.assertAlmostEqual(src_stat.st_mtime, dst_stat.st_mtime, places=2)

def test_copy2_directory(self):
Expand All @@ -273,7 +273,7 @@ def test_copy2_directory(self):
src_stat = os.stat(src_file)
dst_stat = os.stat(dst_file)
self.assertEqual(src_stat.st_mode, dst_stat.st_mode)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=2)
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=0)
self.assertAlmostEqual(src_stat.st_mtime, dst_stat.st_mtime, places=2)

def test_copytree(self):
Expand Down

0 comments on commit 0234532

Please sign in to comment.