Skip to content

Commit a7ab513

Browse files
add a regression test for issue #164
1 parent 1cfcec1 commit a7ab513

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

testing/test_regressions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
import subprocess
23

34
from setuptools_scm import get_version
45
from setuptools_scm.git import parse
@@ -48,6 +49,15 @@ def test_pip_egg_info(tmpdir, monkeypatch):
4849
assert get_version(root=p.strpath) == '1.0'
4950

5051

52+
@pytest.mark.issue(164)
53+
def test_pip_download(tmpdir, monkeypatch):
54+
monkeypatch.chdir(tmpdir)
55+
subprocess.check_call([
56+
sys.executable, '-m',
57+
'pip', 'download', 'lz4==0.9.0',
58+
])
59+
60+
5161
def test_use_scm_version_callable(tmpdir, monkeypatch):
5262
"""use of callable as use_scm_version argument"""
5363
monkeypatch.delenv("SETUPTOOLS_SCM_DEBUG")

0 commit comments

Comments
 (0)