Skip to content

Commit c58a4cc

Browse files
benoit-pierredstufft
authored andcommitted
tests: fix mistakenly skipped test (#4665)
1 parent 6ebec4a commit c58a4cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unit/test_wheel.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from pip.exceptions import InvalidWheelFilename, UnsupportedWheel
1111
from pip.utils import unpack_file
1212

13+
from tests.lib import DATA_DIR
14+
1315

1416
@pytest.mark.parametrize("console_scripts",
1517
["pip = pip.main:pip", "pip:pip = pip.main:pip"])
@@ -243,9 +245,8 @@ def test_unpack_wheel_no_flatten(self):
243245
from tempfile import mkdtemp
244246
from shutil import rmtree
245247

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

0 commit comments

Comments
 (0)