mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Added comments
This commit is contained in:
parent
722ba2dd16
commit
248b6785a4
1 changed files with 4 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue