Remove unicode key pairs from environ after test

This commit is contained in:
Daniel A. Wozniak 2018-08-01 14:28:57 -07:00
parent bec79e83a3
commit 4f8a191a69
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -42,6 +42,10 @@ class PipModuleTest(ModuleCase):
os.makedirs(self.pip_temp)
os.environ['PIP_SOURCE_DIR'] = os.environ['PIP_BUILD_DIR'] = ''
def tearDown(self):
if 'PIP_SOURCE_DIR' in os.environ:
os.environ.pop('PIP_SOURCE_DIR')
def _check_download_error(self, ret):
'''
Checks to see if a download error looks transitory