Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Nov 1, 2024
1 parent 9b223ca commit fc40a79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,9 @@ def test_copy_dir_preserve_metadata(self):
for subpath in ['.', 'fileC', 'dirD', 'dirD/fileD']:
source_st = source.joinpath(subpath).stat()
target_st = target.joinpath(subpath).stat()
self.assertLessEqual(source_st.st_atime, target_st.st_atime)
self.assertLessEqual(source_st.st_mtime, target_st.st_mtime)
# The modification times may be truncated in the new file.
self.assertLessEqual(source_st.st_atime, target_st.st_atime + 1)
self.assertLessEqual(source_st.st_mtime, target_st.st_mtime + 1)
self.assertEqual(source_st.st_mode, target_st.st_mode)
if hasattr(source_st, 'st_flags'):
self.assertEqual(source_st.st_flags, target_st.st_flags)
Expand Down

0 comments on commit fc40a79

Please sign in to comment.