We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebec4a commit c58a4ccCopy full SHA for c58a4cc
tests/unit/test_wheel.py
@@ -10,6 +10,8 @@
10
from pip.exceptions import InvalidWheelFilename, UnsupportedWheel
11
from pip.utils import unpack_file
12
13
+from tests.lib import DATA_DIR
14
+
15
16
@pytest.mark.parametrize("console_scripts",
17
["pip = pip.main:pip", "pip:pip = pip.main:pip"])
@@ -243,9 +245,8 @@ def test_unpack_wheel_no_flatten(self):
243
245
from tempfile import mkdtemp
244
246
from shutil import rmtree
247
- filepath = '../data/packages/meta-1.0-py2.py3-none-any.whl'
- if not os.path.exists(filepath):
248
- pytest.skip("%s does not exist" % filepath)
+ filepath = os.path.join(DATA_DIR, 'packages',
249
+ 'meta-1.0-py2.py3-none-any.whl')
250
try:
251
tmpdir = mkdtemp()
252
utils.unpack_file(filepath, tmpdir, 'application/zip', None)
0 commit comments