mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Restore $HOME after test has run (should fix #12765)
This commit is contained in:
parent
e1da71cc26
commit
9bb6dfe0a8
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue