mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
added bug fix for test_config.py - http://bugs.python.org/issue3210
This commit is contained in:
parent
b3d78d279c
commit
4e6428c489
|
@ -69,10 +69,13 @@ def test_config_file_override_stack():
|
|||
local, overriding all with a command line flag).
|
||||
|
||||
"""
|
||||
fd, config_file = tempfile.mkstemp('-pip.cfg', 'test-')
|
||||
try:
|
||||
_, config_file = tempfile.mkstemp('-pip.cfg', 'test-')
|
||||
_test_config_file_override_stack(config_file)
|
||||
finally:
|
||||
# `os.close` is a workaround for a bug in subprocess
|
||||
# http://bugs.python.org/issue3210
|
||||
os.close(fd)
|
||||
os.remove(config_file)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue