From 6e811dc7a228eeefe4cfe75f7a2605ee48762be9 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 22 Dec 2017 13:42:26 -0500 Subject: [PATCH] Add test that reproduces #1240 --- tests/test_pipenv.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index 5bcf03eb..f2e69a43 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -440,6 +440,26 @@ tablib = "<0.12" assert 'tablib' in p.lockfile['default'] + @pytest.mark.e + @pytest.mark.install + @pytest.mark.vcs + @pytest.mark.resolver + def test_editable_vcs_install_in_pipfile_with_dependency_resolution_doesnt_traceback(self): + # See https://github.com/pypa/pipenv/issues/1240 + with PipenvInstance() as p: + with open(p.pipfile_path, 'w') as f: + contents = """ +[packages] +requests = {git = "https://github.com/requests/requests.git", editable = true} +"oslo.utils" = "==1.4.0" + """.strip() + f.write(contents) + c = p.pipenv('install') + assert c.return_code == 1 + assert 'FileNotFoundError' not in c.out + assert 'FileNotFoundError' not in c.err + + @pytest.mark.run @pytest.mark.install def test_multiprocess_bug_and_install(self):