mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Removed part of the test code that stopped it when ~/.pip.cfg existed, added test_config.cfg to default args of test_pip.py
This commit is contained in:
parent
155e7aa731
commit
962d746c93
|
@ -31,10 +31,6 @@ def clear_environ(environ):
|
|||
|
||||
def reset_env(environ=None):
|
||||
global env
|
||||
pip_cfg = os.path.expanduser('~/.pip.cfg')
|
||||
if os.path.exists(pip_cfg):
|
||||
print 'Move %s out of the way before running this test' % pip_cfg
|
||||
sys.exit(1)
|
||||
if not environ:
|
||||
environ = os.environ.copy()
|
||||
environ = clear_environ(environ)
|
||||
|
@ -121,7 +117,7 @@ def main():
|
|||
options, args = parser.parse_args()
|
||||
reset_env()
|
||||
if not args:
|
||||
args = ['test_basic.txt', 'test_requirements.txt', 'test_freeze.txt', 'test_proxy.txt', 'test_uninstall.txt', 'test_upgrade.txt']
|
||||
args = ['test_basic.txt', 'test_requirements.txt', 'test_freeze.txt', 'test_proxy.txt', 'test_uninstall.txt', 'test_upgrade.txt', 'test_config.txt']
|
||||
optionflags = doctest.ELLIPSIS
|
||||
if options.first:
|
||||
optionflags |= doctest.REPORT_ONLY_FIRST_FAILURE
|
||||
|
|
Loading…
Reference in a new issue