diff options
-rw-r--r-- | xnt/tasks.py | 2 | ||||
-rw-r--r-- | xnt/tests/taskcompressiontests.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xnt/tasks.py b/xnt/tasks.py index 22df254..0b2a042 100644 --- a/xnt/tasks.py +++ b/xnt/tasks.py @@ -80,7 +80,7 @@ def rm(*fileset): except: raise -def zip(dir,zipfilename): +def create_zip(dir,zipfilename): logger.info("Zipping %s as %s", dir, zipfilename) assert os.path.isdir(dir) and zipfilename with contextlib.closing(zipfile.ZipFile( diff --git a/xnt/tests/taskcompressiontests.py b/xnt/tests/taskcompressiontests.py index 90ba081..9fe7758 100644 --- a/xnt/tests/taskcompressiontests.py +++ b/xnt/tests/taskcompressiontests.py @@ -35,7 +35,7 @@ class TaskCompressionTests(unittest.TestCase): shutil.rmtree("temp") def test_zip(self): - xnt.tasks.zip("temp/testfolder1", "temp/myzip.zip") + xnt.tasks.create_zip("temp/testfolder1", "temp/myzip.zip") self.assertTrue(os.path.exists("temp/myzip.zip")) if __name__ == "__main__": |