Restore $HOME after test has run (should fix #12765)

This commit is contained in:
Éric Araujo 2011-08-19 17:47:52 +02:00
parent e1da71cc26
commit 9bb6dfe0a8
1 changed files with 3 additions and 0 deletions

View File

@ -272,8 +272,11 @@ class DistributionTestCase(support.TempdirManager,
class MetadataTestCase(support.TempdirManager,
support.LoggingCatcher,
support.EnvironRestorer,
unittest.TestCase):
restore_environ = ['HOME']
def setUp(self):
super(MetadataTestCase, self).setUp()
self.argv = sys.argv, sys.argv[:]