Skip to content

Commit

Permalink
added bug fix for test_config.py - http://bugs.python.org/issue3210
Browse files Browse the repository at this point in the history
  • Loading branch information
hltbra committed Mar 15, 2011
1 parent b3d78d2 commit 4e6428c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 4e6428c

Please sign in to comment.