Commit 275748b9 authored by Barry Warsaw's avatar Barry Warsaw

* Suppress the extra Doctest: lines.

* Use DocFileTest directly.
parent fc163fad
......@@ -89,12 +89,12 @@ class NosePlugin(Plugin):
layer = SMTPLayer
else:
layer = getattr(module, 'layer', SMTPLayer)
suite = doctest.DocFileSuite(
test = doctest.DocFileTest(
path, package='mailman',
optionflags=FLAGS,
setUp=setup,
tearDown=teardown)
# Flatten the suite, adding the layer flag on every TestCase.
for test in suite:
test.layer = layer
event.extraTests.append(test)
test.layer = layer
# Suppress the extra "Doctest: ..." line.
test.shortDescription = lambda: None
event.extraTests.append(test)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment