Merge pull request #7667 from ThomasWaldmann/skip-sparse-test-win32-master

test_sparse_file: skip test on win32
This commit is contained in:
TW 2023-06-23 00:15:44 +02:00 committed by GitHub
commit 349514446f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ class ArchiverTestCase(ArchiverTestCaseBase):
assert same_ts_ns(sti.st_mtime_ns, sto.st_mtime_ns)
assert same_ts_ns(sto.st_mtime_ns, mtime * 1e9)
#
@pytest.mark.skipif(is_win32, reason="frequent test failures on github CI on win32")
def test_sparse_file(self):
def is_sparse(fn, total_size, hole_size):
st = os.stat(fn)