"""Support code for distutils test cases."""
from distutils
import log
class LoggingSilencer(object):
super(LoggingSilencer
, self
).setUp()
self
.threshold
= log
.set_threshold(log
.FATAL
)
log
.set_threshold(self
.threshold
)
super(LoggingSilencer
, self
).tearDown()
class TempdirManager(object):
"""Mix-in class that handles temporary directories for test cases.
This is intended to be used with unittest.TestCase.
super(TempdirManager
, self
).setUp()
super(TempdirManager
, self
).tearDown()
"""Create a temporary directory that will be cleaned up.
Returns the path of the directory.
"""Class to store options for retrieval via set_undefined_options()."""
def __init__(self
, **kwargs
):
for kw
, val
in kwargs
.items():
def ensure_finalized(self
):