summaryrefslogtreecommitdiffhomepage
path: root/tests/04_test_submodules.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-17 20:10:00 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-17 20:11:01 +0100
commit1140886c80d5ef029bfd7b37b9ff8a24f07e6a69 (patch)
tree50907fe22435da93a1c1c55a96637f58cafa9020 /tests/04_test_submodules.py
parent4eb8c383ad862cbf1fc6c3f7b86400869079035b (diff)
buildpackage: Don't set a compression level if unset and make this the default
This allows compressors to use the their default compression level. Only applies when not using pristine-tar. Thanks: Antoine Beaupré for investigating Closes: #820846
Diffstat (limited to 'tests/04_test_submodules.py')
-rw-r--r--tests/04_test_submodules.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/04_test_submodules.py b/tests/04_test_submodules.py
index 5cd86108..fcd00bad 100644
--- a/tests/04_test_submodules.py
+++ b/tests/04_test_submodules.py
@@ -127,11 +127,11 @@ def test_create_tarballs():
# Tarball with submodules
changelog = {"Source": "test", "Upstream-Version": "0.1"}
ok_(buildpackage.git_archive(REPO, changelog, str(TMPDIR), "HEAD", "bzip2",
- "9", True))
+ 9, True))
# Tarball without submodules
changelog = {"Source": "test", "Upstream-Version": "0.2"}
ok_(buildpackage.git_archive(REPO, changelog, str(TMPDIR), "HEAD", "bzip2",
- "9", False))
+ 9, False))
def test_create_zip_archives():
@@ -143,7 +143,7 @@ def test_create_zip_archives():
ok_('test/test_submodule/testfile' in contents)
git_archive_single('HEAD', 'without-submodules.zip', 'test',
- '', '', '', 'zip')
+ '', None, '', 'zip')
contents = ls_zip('without-submodules.zip')
ok_('test/test_submodule/testfile' not in contents)