@pytest.mark.network
def test_env_vars_override_config_file(script, virtualenv):
 (fd, config_file) = tempfile.mkstemp('-pip.cfg', 'test-')
 try:
  _test_env_vars_override_config_file(script, virtualenv, config_file)
 finally:
  os.close(fd)
  os.remove(config_file)

@ pytest . mark . network def test_env_vars_override_config_file ( script , virtualenv ) : ( fd , config_file ) = tempfile . mkstemp ( '-pip.cfg' , 'test-' ) try : _test_env_vars_override_config_file ( script , virtualenv , config_file ) finally : os . close ( fd ) os . remove ( config_file )
test that environmental variables override settings in config files .