diff --git a/src/borg/testsuite/chunker_pytest_test.py b/src/borg/testsuite/chunker_pytest_test.py index 2c5829cdf..0b61c1b57 100644 --- a/src/borg/testsuite/chunker_pytest_test.py +++ b/src/borg/testsuite/chunker_pytest_test.py @@ -427,11 +427,13 @@ def test_filefmapreader_with_real_sparse_file(tmpdir): {"data_type": bytes, "allocation": CH_DATA, "size": BS}, ] - # Expected chunks when reading with sparse=False + # Expected chunks when reading with sparse=False. + # Even though it is not differentiating data vs hole ranges, it still + # transforms detected all-zero blocks to CH_ALLOC chunks. expected_chunks_non_sparse = [ {"data_type": bytes, "allocation": CH_DATA, "size": BS}, - {"data_type": bytes, "allocation": CH_DATA, "size": BS}, - {"data_type": bytes, "allocation": CH_DATA, "size": BS}, + {"data_type": type(None), "allocation": CH_ALLOC, "size": BS}, + {"data_type": type(None), "allocation": CH_ALLOC, "size": BS}, {"data_type": bytes, "allocation": CH_DATA, "size": BS}, ]