1
# Copyright 2009 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Test harness for LAZR doctests."""
12
from zope.testing.cleanup import cleanUp
16
doctest.NORMALIZE_WHITESPACE |
20
"""All classes should be new-style."""
21
test.globs['__metaclass__'] = type
22
test.globs['__file__'] = test.filename
25
"""Run registered clean-up function."""
30
"""See `zope.testing.testrunner`."""
33
for name in os.listdir(
34
os.path.join(os.path.dirname(__file__), '../doc'))
35
if name.endswith('.txt')])
36
return doctest.DocFileSuite(
37
setUp=setUp, tearDown=tearDown, optionflags=DOCTEST_FLAGS, *tests)