Skip to content

Commit

Permalink
BUG: use an egg without symlinks for cross-platform test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Jun 6, 2015
1 parent 6b0f166 commit b9d3fff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions egginst/tests/common.py
Expand Up @@ -49,6 +49,8 @@
NOSE_1_2_1 = os.path.join(os.path.dirname(__file__), "data", "nose-1.2.1-1.egg")
NOSE_1_3_0 = os.path.join(os.path.dirname(__file__), "data", "nose-1.3.0-1.egg")

MKL_10_3 = os.path.join(os.path.dirname(__file__), "data", "MKL-10.3-1.egg")

STANDARD_EGG = os.path.join(_EGGINST_COMMON_DATA, "Jinja2-2.6-py2.7.egg")
STANDARD_EGG_METADATA_FILES = (
"dependency_links.txt", "entry_points.txt", "not-zip-safe", "PKG-INFO",
Expand Down
Binary file added egginst/tests/data/MKL-10.3-1.egg
Binary file not shown.
10 changes: 5 additions & 5 deletions enstaller/tools/tests/test_repack.py
Expand Up @@ -14,7 +14,7 @@
from egginst.eggmeta import info_from_z
from egginst.tests.common import (
DUMMY_EGG, STANDARD_EGG, LEGACY_EGG_INFO_EGG, STANDARD_EGG_WITH_EXT,
NOSE_1_2_1, VTK_EGG_DEFERRED_SOFTLINK
NOSE_1_2_1, MKL_10_3,
)
from egginst.vendor.six.moves import unittest
from egginst.vendor.zipfile2 import ZipFile
Expand Down Expand Up @@ -173,18 +173,18 @@ def test_dependencies(self):
def test_enthought_name_upper_case(self):
# Given
source = os.path.join(self.prefix,
os.path.basename(VTK_EGG_DEFERRED_SOFTLINK))
shutil.copy(VTK_EGG_DEFERRED_SOFTLINK, source)
os.path.basename(MKL_10_3))
shutil.copy(MKL_10_3, source)

target = os.path.join(self.prefix, "VTK-5.10.1-11.egg")
target = os.path.join(self.prefix, "MKL-10.3-11.egg")

# When
repack(source, 11, "rh5-64")

# Then
self.assertTrue(os.path.exists(target))
metadata = EggMetadata.from_egg(target)
self.assertEqual(metadata.egg_basename, "VTK")
self.assertEqual(metadata.egg_basename, "MKL")

def test_endist_metadata_simple(self):
# Given
Expand Down

0 comments on commit b9d3fff

Please sign in to comment.