mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge branch 'bugfix/2435-pkg-resources-typeerror' of github.com:pypa/pipenv into bugfix/2435-pkg-resources-typeerror
This commit is contained in:
@@ -37,7 +37,8 @@ tablib = {version = "*", markers="os_name=='splashwear'"}
|
||||
@pytest.mark.markers
|
||||
@flaky
|
||||
def test_platform_python_implementation_marker(PipenvInstance, pypi):
|
||||
"""Markers should be converted during locking to help users who input this incorrectly
|
||||
"""Markers should be converted during locking to help users who input this
|
||||
incorrectly.
|
||||
"""
|
||||
with PipenvInstance(pypi=pypi) as p:
|
||||
with open(p.pipfile_path, 'w') as f:
|
||||
@@ -50,10 +51,12 @@ depends-on-marked-package = "*"
|
||||
c = p.pipenv('install')
|
||||
assert c.return_code == 0
|
||||
|
||||
# depends-on-marked-package has an install_requires of 'pytz; platform_python_implementation=="CPython"'
|
||||
# depends-on-marked-package has an install_requires of
|
||||
# 'pytz; platform_python_implementation=="CPython"'
|
||||
# Verify that that marker shows up in our lockfile unaltered.
|
||||
assert 'pytz' in p.lockfile['default']
|
||||
assert p.lockfile['default']['pytz'].get('markers') == "platform_python_implementation == 'CPython'"
|
||||
assert p.lockfile['default']['pytz'].get('markers') == \
|
||||
"platform_python_implementation == 'CPython'"
|
||||
|
||||
|
||||
@pytest.mark.run
|
||||
|
||||
Reference in New Issue
Block a user