diff options
author | Julien Jehannet <julien.jehannet@logilab.fr> | 2011-01-05 14:41:26 +0100 |
---|---|---|
committer | Julien Jehannet <julien.jehannet@logilab.fr> | 2011-01-05 14:41:26 +0100 |
commit | 8d00f2f8345128ebd34e8da1030c9ef240b3b242 (patch) | |
tree | c5c543e7efd2b30f15f5cdacecd464cff5c48ffc /test | |
parent | 4b823abec78b352fc446ef3da90258188bd3eb87 (diff) | |
download | logilab-common-8d00f2f8345128ebd34e8da1030c9ef240b3b242.tar.gz |
[tests] use plain package file (no symlink)
Create a clean zipped mypypa package (without EGG-INFO)
Diffstat (limited to 'test')
l--------- | test/data/MyPyPa-0.1.0-py2.5.zip | 1 | ||||
-rw-r--r-- | test/data/MyPyPa-0.1.0.zip | bin | 0 -> 206 bytes | |||
-rw-r--r-- | test/data/__init__.py | 1 | ||||
-rw-r--r-- | test/unittest_modutils.py | 4 |
4 files changed, 2 insertions, 4 deletions
diff --git a/test/data/MyPyPa-0.1.0-py2.5.zip b/test/data/MyPyPa-0.1.0-py2.5.zip deleted file mode 120000 index 18b039d..0000000 --- a/test/data/MyPyPa-0.1.0-py2.5.zip +++ /dev/null @@ -1 +0,0 @@ -MyPyPa-0.1.0-py2.5.egg
\ No newline at end of file diff --git a/test/data/MyPyPa-0.1.0.zip b/test/data/MyPyPa-0.1.0.zip Binary files differnew file mode 100644 index 0000000..a7b3125 --- /dev/null +++ b/test/data/MyPyPa-0.1.0.zip diff --git a/test/data/__init__.py b/test/data/__init__.py index 1d5cf02..e69de29 100644 --- a/test/data/__init__.py +++ b/test/data/__init__.py @@ -1 +0,0 @@ -__revision__="$Id: __init__.py,v 1.1 2003-10-20 06:39:32 syt Exp $" diff --git a/test/unittest_modutils.py b/test/unittest_modutils.py index 0ea2255..19c758d 100644 --- a/test/unittest_modutils.py +++ b/test/unittest_modutils.py @@ -53,9 +53,9 @@ class ModuleFileTC(TestCase): package = "mypypa" def test_find_zipped_module(self): - mtype, mfile = modutils._module_file([self.package], [path.join(DATADIR, 'MyPyPa-0.1.0-py2.5.zip')]) + mtype, mfile = modutils._module_file([self.package], [path.join(DATADIR, 'MyPyPa-0.1.0.zip')]) self.assertEqual(mtype, modutils.ZIPFILE) - self.assertEqual(mfile.split(sep)[-4:], ["test", "data", "MyPyPa-0.1.0-py2.5.zip", self.package]) + self.assertEqual(mfile.split(sep)[-4:], ["test", "data", "MyPyPa-0.1.0.zip", self.package]) def test_find_egg_module(self): mtype, mfile = modutils._module_file([self.package], [path.join(DATADIR, 'MyPyPa-0.1.0-py2.5.egg')]) |