From: Éric Araujo Date: Fri, 19 Aug 2011 15:47:52 +0000 (+0200) Subject: Restore $HOME after test has run (should fix #12765) X-Git-Tag: v3.3.0a1~1672 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046;p=thirdparty%2FPython%2Fcpython.git Restore $HOME after test has run (should fix #12765) --- diff --git a/Lib/packaging/tests/test_dist.py b/Lib/packaging/tests/test_dist.py index 48335e770556..01a11caa4c53 100644 --- a/Lib/packaging/tests/test_dist.py +++ b/Lib/packaging/tests/test_dist.py @@ -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[:]