summaryrefslogtreecommitdiff
path: root/tests/test_recursiveloader.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-05 11:50:57 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-05 11:50:57 +0200
commit473fa5444186143f58dffbf1d14982a8905b1fc8 (patch)
tree67c1f90c1337a45cf15095c17116d425a52cd834 /tests/test_recursiveloader.py
parent0e383db89283610b10f4651ec0a9f9727b9da748 (diff)
downloadgemato-473fa5444186143f58dffbf1d14982a8905b1fc8.tar.gz
Fix wrongly determining uncompressed size
Flush the file after writing to ensure that .buffer.tell() gives non-zero value. This fixes a number of cases of Manifests not being compressed. It also pointed out a major mistake in profile tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/test_recursiveloader.py')
-rw-r--r--tests/test_recursiveloader.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_recursiveloader.py b/tests/test_recursiveloader.py
index ee11e19..37bfae9 100644
--- a/tests/test_recursiveloader.py
+++ b/tests/test_recursiveloader.py
@@ -2068,8 +2068,7 @@ COMMON_COMPRESS_VARIANTS = (
list(itertools.chain.from_iterable(
[(BasicTestLayout, 0, algo,
[x for x in BasicTestLayout.MANIFESTS if x != 'Manifest']),
- pytest.param(BasicTestLayout, 64, algo, ['sub/Manifest'],
- marks=pytest.mark.xfail),
+ (BasicTestLayout, 64, algo, ['sub/Manifest']),
] for algo in COMPRESSION_ALGOS)) +
[(CompressedSubManifestLayout, 0, 'gz', ['sub/Manifest']),
(CompressedSubManifestLayout, 4096, 'gz', []),