diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-03-17 14:39:25 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-03-17 15:36:57 +0100 |
| commit | 3c9e1b4fce9a587436965c495f5e43f96e115207 (patch) | |
| tree | fddbd7cbd952c50fb08dd281ebc60d8ac4dfb6cd /tests/test_paths.py | |
| parent | b9844054663142c3e8dad1a6e1b3612c7db2054b (diff) | |
| download | python-apt-3c9e1b4fce9a587436965c495f5e43f96e115207.tar.gz | |
Support all compressors for data.tar/control.tar (Closes: #718330)
This makes our support very flexible, and open for future additions
of new compression algorithms.
debfile_extract_tar() is almost identical to ExtractTarMember() of
apt's debDebFile.
Diffstat (limited to 'tests/test_paths.py')
| -rw-r--r-- | tests/test_paths.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_paths.py b/tests/test_paths.py index 62ea1665..51d22f49 100644 --- a/tests/test_paths.py +++ b/tests/test_paths.py @@ -53,8 +53,8 @@ class TestPath(unittest.TestCase): self.assertTrue(archive[b"debian-binary"]) self.assertTrue(archive[u"debian-binary"]) - tar = archive.gettar(u"control.tar.gz", "gzip") - tar = archive.gettar(b"control.tar.gz", "gzip") + tar = archive.gettar(u"control.tar.xz", "xz") + tar = archive.gettar(b"control.tar.xz", "xz") tar.extractall(self.dir_unicode) tar.extractall(self.dir_bytes) @@ -63,8 +63,8 @@ class TestPath(unittest.TestCase): tar.extractdata(b"control") tar.extractdata(u"control") - apt_inst.TarFile(os.path.join(self.dir_unicode, u"control.tar.gz")) - apt_inst.TarFile(os.path.join(self.dir_bytes, b"control.tar.gz")) + apt_inst.TarFile(os.path.join(self.dir_unicode, u"control.tar.xz")) + apt_inst.TarFile(os.path.join(self.dir_bytes, b"control.tar.xz")) def test_configuration(self): with open(self.file_unicode, 'w') as config: |
