Merge pull request #7311 from ThomasWaldmann/fix-mac-birthtime-test-fail

tests: relax birthtime assertion, fixes #7308
This commit is contained in:
TW 2023-02-01 11:25:55 +01:00 committed by GitHub
commit 8046d6f575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -507,7 +507,8 @@ class ArchiverTestCase(ArchiverTestCaseBase):
# atime_extracted = os.stat(extracted_path).st_atime_ns
xa_value_extracted = xattr.getxattr(extracted_path.encode(), xa_key)
assert xa_value_extracted == xa_value
assert birthtime_extracted == birthtime_expected
# cope with small birthtime deviations of less than 1000ns:
assert -1000 <= (birthtime_extracted - birthtime_expected) * 1e9 <= 1000
assert mtime_extracted == mtime_expected
# assert atime_extracted == atime_expected # still broken, but not really important.