diff options
| -rw-r--r-- | tests/test_config.py | 1 | ||||
| -rw-r--r-- | tests/test_dist.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 77ef788e..344084af 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -60,6 +60,7 @@ class BasePyPIRCCommandTestCase(support.TempdirManager, super(BasePyPIRCCommandTestCase, self).setUp() self.tmp_dir = self.mkdtemp() os.environ['HOME'] = self.tmp_dir + os.environ['USERPROFILE'] = self.tmp_dir self.rc = os.path.join(self.tmp_dir, '.pypirc') self.dist = Distribution() diff --git a/tests/test_dist.py b/tests/test_dist.py index 0a19f0fb..cc34725a 100644 --- a/tests/test_dist.py +++ b/tests/test_dist.py @@ -463,7 +463,7 @@ class MetadataTestCase(support.TempdirManager, support.EnvironGuard, # win32-style if sys.platform == 'win32': # home drive should be found - os.environ['HOME'] = temp_dir + os.environ['USERPROFILE'] = temp_dir files = dist.find_config_files() self.assertIn(user_filename, files, '%r not found in %r' % (user_filename, files)) |
