mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Add failing test for issue 9122
This commit is contained in:
parent
9613c887f1
commit
11d07016d9
1 changed files with 16 additions and 0 deletions
|
@ -169,6 +169,22 @@ def test_pip_wheel_builds_editable(script, data):
|
||||||
result.did_create(wheel_file_path)
|
result.did_create(wheel_file_path)
|
||||||
|
|
||||||
|
|
||||||
|
def test_pip_wheel_builds_editable_does_not_create_zip(script, data, tmpdir):
|
||||||
|
"""
|
||||||
|
Test 'pip wheel' of editables does not create zip files
|
||||||
|
(regression test for issue #9122)
|
||||||
|
"""
|
||||||
|
wheel_dir = tmpdir / "wheel_dir"
|
||||||
|
wheel_dir.mkdir()
|
||||||
|
editable_path = os.path.join(data.src, 'simplewheel-1.0')
|
||||||
|
script.pip(
|
||||||
|
'wheel', '--no-deps', '-e', editable_path, '-w', wheel_dir
|
||||||
|
)
|
||||||
|
wheels = os.listdir(wheel_dir)
|
||||||
|
assert len(wheels) == 1
|
||||||
|
assert wheels[0].endswith(".whl")
|
||||||
|
|
||||||
|
|
||||||
def test_pip_wheel_fail(script, data):
|
def test_pip_wheel_fail(script, data):
|
||||||
"""
|
"""
|
||||||
Test 'pip wheel' failure.
|
Test 'pip wheel' failure.
|
||||||
|
|
Loading…
Reference in a new issue