diff --git a/tests/integration/test_install_twists.py b/tests/integration/test_install_twists.py index c3b1055b..e12b2ab6 100644 --- a/tests/integration/test_install_twists.py +++ b/tests/integration/test_install_twists.py @@ -208,7 +208,7 @@ def test_relative_paths(PipenvInstance, pypi, testsroot): # Test installing a relative path in a subdirectory c = p.pipenv('install {}/{}'.format(artifact_dir, file_name)) assert c.return_code == 0 - key = next(p.pipfile['packages'].keys()) + key = next(k for k in p.pipfile['packages'].keys()) dep = p.pipfile['packages'][key] assert 'path' in dep