Commit 9bb6dfe0 authored by Éric Araujo's avatar Éric Araujo

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

parent e1da71cc
...@@ -272,8 +272,11 @@ class DistributionTestCase(support.TempdirManager, ...@@ -272,8 +272,11 @@ class DistributionTestCase(support.TempdirManager,
class MetadataTestCase(support.TempdirManager, class MetadataTestCase(support.TempdirManager,
support.LoggingCatcher, support.LoggingCatcher,
support.EnvironRestorer,
unittest.TestCase): unittest.TestCase):
restore_environ = ['HOME']
def setUp(self): def setUp(self):
super(MetadataTestCase, self).setUp() super(MetadataTestCase, self).setUp()
self.argv = sys.argv, sys.argv[:] self.argv = sys.argv, sys.argv[:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment