[Checkins] SVN: zc.dict/branches/tlotze-blist/ made generation tests really only run with the generation-aware test runner
Thomas Lotze
tl at gocept.com
Mon Mar 16 14:16:57 EDT 2009
Log message for revision 98149:
made generation tests really only run with the generation-aware test runner
Changed:
U zc.dict/branches/tlotze-blist/buildout.cfg
U zc.dict/branches/tlotze-blist/src/zc/dict/tests.py
-=-
Modified: zc.dict/branches/tlotze-blist/buildout.cfg
===================================================================
--- zc.dict/branches/tlotze-blist/buildout.cfg 2009-03-16 17:00:46 UTC (rev 98148)
+++ zc.dict/branches/tlotze-blist/buildout.cfg 2009-03-16 18:16:57 UTC (rev 98149)
@@ -10,7 +10,7 @@
[test-generations]
recipe = zc.recipe.testrunner
eggs = zc.dict [generations]
-defaults = ["-v", "-c"]
+defaults = ["-v", "-c", "--suite-name=test_suite_generations"]
[py]
recipe = zc.recipe.egg
Modified: zc.dict/branches/tlotze-blist/src/zc/dict/tests.py
===================================================================
--- zc.dict/branches/tlotze-blist/src/zc/dict/tests.py 2009-03-16 17:00:46 UTC (rev 98148)
+++ zc.dict/branches/tlotze-blist/src/zc/dict/tests.py 2009-03-16 18:16:57 UTC (rev 98149)
@@ -18,13 +18,25 @@
import unittest
from zope.testing import doctest
+
+optionflags = (doctest.INTERPRET_FOOTNOTES |
+ doctest.REPORT_NDIFF |
+ doctest.ELLIPSIS)
+
+
def test_suite():
return unittest.TestSuite([
doctest.DocFileSuite('dict.txt', 'ordered.txt',
- 'generations/evolve1.txt',
- optionflags=doctest.INTERPRET_FOOTNOTES
- |doctest.REPORT_NDIFF|doctest.ELLIPSIS),
+ optionflags=optionflags),
])
+
+def test_suite_generations():
+ suite = test_suite()
+ suite.addTest(doctest.DocFileSuite('generations/evolve1.txt',
+ optionflags=optionflags))
+ return suite
+
+
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
More information about the Checkins
mailing list