[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/component/
Move cleanup to doctest definition.
Philipp von Weitershausen
philikon at philikon.de
Tue Apr 11 04:25:50 EDT 2006
Log message for revision 66832:
Move cleanup to doctest definition.
Changed:
U Zope3/branches/jim-adapter/src/zope/component/event.txt
U Zope3/branches/jim-adapter/src/zope/component/tests.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/event.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/event.txt 2006-04-11 08:24:14 UTC (rev 66831)
+++ Zope3/branches/jim-adapter/src/zope/component/event.txt 2006-04-11 08:25:50 UTC (rev 66832)
@@ -49,8 +49,3 @@
>>> called.sort()
>>> called
[1, 2]
-
-Finally, let's clean up:
-
- >>> from zope.testing.cleanup import cleanUp
- >>> cleanUp()
Modified: Zope3/branches/jim-adapter/src/zope/component/tests.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/tests.py 2006-04-11 08:24:14 UTC (rev 66831)
+++ Zope3/branches/jim-adapter/src/zope/component/tests.py 2006-04-11 08:25:50 UTC (rev 66832)
@@ -798,7 +798,6 @@
(re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'),
])
-
return unittest.TestSuite((
doctest.DocTestSuite(setUp=setUp, tearDown=tearDown),
doctest.DocFileSuite('README.txt',
@@ -809,7 +808,8 @@
setUp=setUp, tearDown=tearDown),
doctest.DocFileSuite('registry.txt', checker=checker,
tearDown=tearDownRegistryTests),
- doctest.DocFileSuite('event.txt'),
+ doctest.DocFileSuite('event.txt',
+ setUp=setUp, tearDown=tearDown),
doctest.DocTestSuite('zope.component.interface',
setUp=setUp, tearDown=tearDown),
))
More information about the Zope3-Checkins
mailing list