summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulien Jehannet <julien.jehannet@logilab.fr>2011-01-05 14:41:26 +0100
committerJulien Jehannet <julien.jehannet@logilab.fr>2011-01-05 14:41:26 +0100
commit8d00f2f8345128ebd34e8da1030c9ef240b3b242 (patch)
treec5c543e7efd2b30f15f5cdacecd464cff5c48ffc /test
parent4b823abec78b352fc446ef3da90258188bd3eb87 (diff)
downloadlogilab-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.zip1
-rw-r--r--test/data/MyPyPa-0.1.0.zipbin0 -> 206 bytes
-rw-r--r--test/data/__init__.py1
-rw-r--r--test/unittest_modutils.py4
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
new file mode 100644
index 0000000..a7b3125
--- /dev/null
+++ b/test/data/MyPyPa-0.1.0.zip
Binary files differ
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')])