Commit eec77450 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix yet more broken tests

parent f138ac3d
Pipeline #1157 passed with stages
in 38 seconds
......@@ -105,18 +105,11 @@ class TestPackaging(BaseTest):
except ImportError: # python 3
from io import BytesIO as BIO
try:
import lzma
except ImportError:
from backports import lzma
filedata = None
with lzma.open(tar, "r") as f:
filedata = f.read()
f.close()
if ".tar.zst" in tar:
tarball = common.ZstdTarFile(tar, 'r')
else:
tarball = tarfile.open(tar, 'r')
file_in = BIO(filedata)
tarball = tarfile.open(fileobj=file_in, mode="r")
packaged_files=tarball.getnames()
packaged_files.sort()
self.assertEqual(packaged_files, self.expected_files)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment