Skip to content

Commit bd9b536

Browse files
committed
Use wheel helper function instead of pre-created wheel file
1 parent dde3ef9 commit bd9b536

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
Binary file not shown.

tests/functional/test_install_wheel.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,27 @@ def test_basic_install_from_unicode_wheel(script, data):
148148

149149
def get_header_scheme_path_for_script(script, dist_name):
150150
command = textwrap.dedent(
151-
"""
151+
'''
152152
from pip._internal.locations import get_scheme
153153
154154
print(get_scheme({!r}).headers)
155-
"""
155+
'''
156156
).format(dist_name)
157157
result = script.run('python', '-c', command).stdout
158158
return Path(result.strip())
159159

160160

161-
def test_install_from_wheel_with_headers(script, data):
161+
def test_install_from_wheel_with_headers(script):
162162
"""
163163
Test installing from a wheel file with headers
164164
"""
165-
package = data.packages.joinpath("headers.dist-0.1-py2.py3-none-any.whl")
165+
package = make_wheel(
166+
'headers.dist',
167+
'0.1',
168+
extra_data_files={
169+
'headers/header.h': '',
170+
},
171+
).save_to_dir(script.scratch_path)
166172
result = script.pip('install', package, '--no-index')
167173
dist_info_folder = script.site_packages / 'headers.dist-0.1.dist-info'
168174
result.did_create(dist_info_folder)

0 commit comments

Comments
 (0)