Assert list of files to archive is non-empty.

This commit is contained in:
Bastian Kleineidam 2012-05-11 19:33:12 +02:00
parent e28f3ab115
commit 7fa1151269
1 changed files with 1 additions and 0 deletions

View File

@ -539,6 +539,7 @@ def test (archive, verbose=False):
def create (archive, *files, **kwargs):
"""Create given archive with given files."""
assert len(files) > 0
return handle_archive(archive, 'create', *files, **kwargs)