Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#895)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and mrbean-bremen authored Oct 10, 2023
1 parent 567480c commit 33d8b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 33d8b1b

Please sign in to comment.