mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -962,36 +962,6 @@ records = {extras = ["pandas"], version = "==0.5.2"}
|
||||
c = p.pipenv('install')
|
||||
assert c.return_code == 0
|
||||
|
||||
@pytest.mark.lock
|
||||
@pytest.mark.install
|
||||
@pytest.mark.system
|
||||
@pytest.mark.skipif(os.name != 'posix', reason="Windows doesn't have a root")
|
||||
def test_resolve_system_python_no_virtualenv(self):
|
||||
"""Ensure we don't error out when we are in a folder off of / and doing an install using --system,
|
||||
which used to cause the resolver and PIP_PYTHON_PATH to point at /bin/python
|
||||
|
||||
Sample dockerfile:
|
||||
FROM python:3.6-alpine3.6
|
||||
|
||||
RUN set -ex && pip install pipenv --upgrade
|
||||
RUN set -ex && mkdir /app
|
||||
COPY Pipfile /app/Pipfile
|
||||
|
||||
WORKDIR /app
|
||||
"""
|
||||
with temp_environ():
|
||||
os.environ['PIPENV_IGNORE_VIRTUALENVS'] = '1'
|
||||
os.environ['PIPENV_USE_SYSTEM'] = '1'
|
||||
with PipenvInstance(chdir=True) as p:
|
||||
os.chdir('/tmp')
|
||||
c = p.pipenv('install --system xlrd')
|
||||
assert c.return_code == 0
|
||||
for fn in ['Pipfile', 'Pipfile.lock']:
|
||||
path = os.path.join('/tmp', fn)
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
|
||||
|
||||
@pytest.mark.lock
|
||||
@pytest.mark.deploy
|
||||
def test_deploy_works(self):
|
||||
|
||||
Reference in New Issue
Block a user