Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: blacken-docs
additional_dependencies: [ black==22.12.0 ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
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