mirror of https://github.com/python/cpython
Restore $HOME after test has run (should fix #12765)
This commit is contained in:
parent
e1da71cc26
commit
9bb6dfe0a8
|
@ -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[:]
|
||||
|
|
Loading…
Reference in New Issue