summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-19 15:47:52 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-19 15:47:52 (GMT)
commit9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046 (patch)
tree7174a5a0f51c654f49abfc2f1bea3b269dbaf776
parente1da71cc26f145f230dfda79db0f515218f145ea (diff)
downloadcpython-9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046.zip
cpython-9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046.tar.gz
cpython-9bb6dfe0a8a57c8919ff0855a4aa0b78f5ce8046.tar.bz2
Restore $HOME after test has run (should fix #12765)
-rw-r--r--Lib/packaging/tests/test_dist.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/packaging/tests/test_dist.py b/Lib/packaging/tests/test_dist.py
index 48335e7..01a11ca 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[:]