mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
tests: fix mistakenly skipped test (#4665)
This commit is contained in:
parent
6ebec4a87e
commit
c58a4ccf1d
|
@ -10,6 +10,8 @@ from pip.compat import WINDOWS
|
|||
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"])
|
||||
|
@ -243,9 +245,8 @@ class TestWheelFile(object):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue