mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Merged revisions 72539 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72539 | tarek.ziade | 2009-05-10 13:59:30 +0200 (Sun, 10 May 2009) | 1 line refactored test_sysconfig so it uses test.test_support.EnvironmentVarGuard ........
This commit is contained in:
parent
c27aca7d3c
commit
29bbb9618d
2 changed files with 19 additions and 19 deletions
|
|
@ -5,6 +5,7 @@ import tempfile
|
|||
|
||||
from distutils import log
|
||||
from distutils.core import Distribution
|
||||
from test.support import EnvironmentVarGuard
|
||||
|
||||
class LoggingSilencer(object):
|
||||
|
||||
|
|
@ -82,3 +83,13 @@ class DummyCommand:
|
|||
|
||||
def ensure_finalized(self):
|
||||
pass
|
||||
|
||||
class EnvironGuard(object):
|
||||
|
||||
def setUp(self):
|
||||
super(EnvironGuard, self).setUp()
|
||||
self.environ = EnvironmentVarGuard()
|
||||
|
||||
def tearDown(self):
|
||||
self.environ.__exit__()
|
||||
super(EnvironGuard, self).tearDown()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue