]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Restore $HOME after test has run (should fix #12765)
authorÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)
Lib/packaging/tests/test_dist.py

index 48335e770556d3e45072ec241230f1e4b2fc0445..01a11caa4c53626117f269a2caf6d55ea729a3ae 100644 (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[:]