From 9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89ric=20Araujo?= Date: Fri, 19 Aug 2011 17:47:52 +0200 Subject: [PATCH] Restore $HOME after test has run (should fix #12765) --- Lib/packaging/tests/test_dist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/packaging/tests/test_dist.py b/Lib/packaging/tests/test_dist.py index 48335e7705..01a11caa4c 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[:] -- 2.50.0