[Checkins] SVN: zope.testrunner/trunk/src/zope/testrunner/find.py fix doctest: unittest.TestResult.run() returns a value on Python 3.3.
Marius Gedminas
cvs-admin at zope.org
Fri Feb 8 08:53:23 UTC 2013
Log message for revision 129210:
fix doctest: unittest.TestResult.run() returns a value on Python 3.3.
Changed:
U zope.testrunner/trunk/src/zope/testrunner/find.py
-=-
Modified: zope.testrunner/trunk/src/zope/testrunner/find.py
===================================================================
--- zope.testrunner/trunk/src/zope/testrunner/find.py 2013-02-08 08:53:02 UTC (rev 129209)
+++ zope.testrunner/trunk/src/zope/testrunner/find.py 2013-02-08 08:53:23 UTC (rev 129210)
@@ -49,7 +49,7 @@
StartUpFailure does something sensible in that case
>>> r = unittest.TestResult()
- >>> s.run(r)
+ >>> _ = s.run(r)
>>> print r.failures[0][1].rstrip() # doctest: +ELLIPSIS
Traceback (most recent call last):
...
@@ -66,7 +66,7 @@
>>> s = StartUpFailure(options, 'fauxmodule', exc_info)
>>> r = unittest.TestResult()
- >>> s.run(r)
+ >>> _ = s.run(r)
>>> print r.errors[0][0].shortDescription()
StartUpFailure: import errors in fauxmodule.
>>> print r.errors[0][1].rstrip() # doctest: +ELLIPSIS
More information about the checkins
mailing list