From c91a989dbb56383dc51aeaf2373da7c14fb08f64 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:59:17 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0234532f4425e2177bc3afb4edf3c116ba5c1b92 Mon Sep 17 00:00:00 2001 From: mrbean-bremen Date: Tue, 10 Oct 2023 20:03:25 +0200 Subject: [PATCH 2/2] Lower sensitivity for access time tests --- pyfakefs/tests/fake_filesystem_shutil_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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):