Skip to content

Commit 33d8b1b

Browse files
[pre-commit.ci] pre-commit autoupdate (#895)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) * Lower sensitivity for access time tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mrbean-bremen <[email protected]>
1 parent 567480c commit 33d8b1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: blacken-docs
2020
additional_dependencies: [ black==22.12.0 ]
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.4.0
22+
rev: v4.5.0
2323
hooks:
2424
- id: trailing-whitespace
2525
- id: end-of-file-fixer

pyfakefs/tests/fake_filesystem_shutil_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def test_copystat(self):
228228
src_stat = os.stat(src_file)
229229
dst_stat = os.stat(dst_file)
230230
self.assertEqual(src_stat.st_mode, dst_stat.st_mode)
231-
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=2)
231+
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=0)
232232
self.assertAlmostEqual(src_stat.st_mtime, dst_stat.st_mtime, places=2)
233233

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

261261
def test_copy2_directory(self):
@@ -273,7 +273,7 @@ def test_copy2_directory(self):
273273
src_stat = os.stat(src_file)
274274
dst_stat = os.stat(dst_file)
275275
self.assertEqual(src_stat.st_mode, dst_stat.st_mode)
276-
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=2)
276+
self.assertAlmostEqual(src_stat.st_atime, dst_stat.st_atime, places=0)
277277
self.assertAlmostEqual(src_stat.st_mtime, dst_stat.st_mtime, places=2)
278278

279279
def test_copytree(self):

0 commit comments

Comments
 (0)