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.exceptions import InvalidWheelFilename, UnsupportedWheel
|
||||||
from pip.utils import unpack_file
|
from pip.utils import unpack_file
|
||||||
|
|
||||||
|
from tests.lib import DATA_DIR
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("console_scripts",
|
@pytest.mark.parametrize("console_scripts",
|
||||||
["pip = pip.main:pip", "pip:pip = pip.main:pip"])
|
["pip = pip.main:pip", "pip:pip = pip.main:pip"])
|
||||||
|
@ -243,9 +245,8 @@ class TestWheelFile(object):
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
|
|
||||||
filepath = '../data/packages/meta-1.0-py2.py3-none-any.whl'
|
filepath = os.path.join(DATA_DIR, 'packages',
|
||||||
if not os.path.exists(filepath):
|
'meta-1.0-py2.py3-none-any.whl')
|
||||||
pytest.skip("%s does not exist" % filepath)
|
|
||||||
try:
|
try:
|
||||||
tmpdir = mkdtemp()
|
tmpdir = mkdtemp()
|
||||||
utils.unpack_file(filepath, tmpdir, 'application/zip', None)
|
utils.unpack_file(filepath, tmpdir, 'application/zip', None)
|
||||||
|
|
Loading…
Reference in a new issue