Some doctests can't be run twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Low
|
Unassigned | ||
3.4 |
Won't Fix
|
Low
|
Unassigned | ||
zope.testing |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.testrunner |
New
|
Undecided
|
Unassigned |
Bug Description
For instance this fails during the second run:
./test.py -v -u -s zope.app.
> Running tests at level 1
> Running unit tests:
> Iteration 1
> Running:
> ........
> Ran 8 tests with 0 failures and 0 errors in 0.559 seconds.
> Iteration 2
> Running:
> ........
> Failure in test PasswordWidgetTest (zope.app.
> Traceback (most recent call last):
> File "/usr/local/
> testMethod()
> File "/usr/local/
> raise self.failureExc
> AssertionError: Failed doctest test for zope.app.
> File "/Users/
> -------
> File "/Users/
> Failed example:
> verifyClass(
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/
> compileflags, 1) in test.globs
> File "<doctest zope.app.
> verifyClass(
> NameError: name 'verifyClass' is not defined
Changed in zope3: | |
status: | Confirmed → Won't Fix |
tags: | added: bugday20100424 |
If I replace 'import doctest' with 'from zope.testing import doctest' , the error does not exist
so should we replace all 'import doctest' ?