1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Added comments

This commit is contained in:
Alex Gaynor 2021-05-17 17:15:27 -04:00
parent 722ba2dd16
commit 248b6785a4

View file

@ -598,6 +598,8 @@ class TestParseRequirements:
with open(tmpdir.joinpath('req1.txt'), 'w') as fp:
fp.write(template.format(*map(make_var, env_vars)))
# Construct the session outside the monkey-patch, since it access the
# env
session = PipSession()
with patch('pip._internal.req.req_file.os.getenv') as getenv:
getenv.side_effect = lambda n: env_vars[n]
@ -624,6 +626,8 @@ class TestParseRequirements:
with open(tmpdir.joinpath('req1.txt'), 'w') as fp:
fp.write(req_url)
# Construct the session outside the monkey-patch, since it access the
# env
session = PipSession()
with patch('pip._internal.req.req_file.os.getenv') as getenv:
getenv.return_value = ''