diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f48dc760..4a776d75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyfakefs/tests/fake_filesystem_shutil_test.py b/pyfakefs/tests/fake_filesystem_shutil_test.py index 83d46720..530241db 100644 --- a/pyfakefs/tests/fake_filesystem_shutil_test.py +++ b/pyfakefs/tests/fake_filesystem_shutil_test.py @@ -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") @@ -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): @@ -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):