Skip to content

Commit

Permalink
tests: fix mistakenly skipped test (#4665)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and dstufft committed Aug 31, 2017
1 parent 6ebec4a commit c58a4cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from pip.exceptions import InvalidWheelFilename, UnsupportedWheel
from pip.utils import unpack_file

from tests.lib import DATA_DIR


@pytest.mark.parametrize("console_scripts",
["pip = pip.main:pip", "pip:pip = pip.main:pip"])
Expand Down Expand Up @@ -243,9 +245,8 @@ def test_unpack_wheel_no_flatten(self):
from tempfile import mkdtemp
from shutil import rmtree

filepath = '../data/packages/meta-1.0-py2.py3-none-any.whl'
if not os.path.exists(filepath):
pytest.skip("%s does not exist" % filepath)
filepath = os.path.join(DATA_DIR, 'packages',
'meta-1.0-py2.py3-none-any.whl')
try:
tmpdir = mkdtemp()
utils.unpack_file(filepath, tmpdir, 'application/zip', None)
Expand Down

0 comments on commit c58a4cc

Please sign in to comment.