[issue21178] doctest cause warnings in tests using generators
Ontje Lünsdorf
report at bugs.python.org
Sat Apr 12 10:22:41 CEST 2014
Ontje Lünsdorf added the comment:
I think there may be a bug in doctest which is getting exposed by Python 3.4 new handling of reference cycles. I've attached a simpler example with a global variable.
There's no error if you run the code directly, the global variable still exists during the generator exit. If you run it with doctest in Python 3.4 you get the warning because the global variable has been deleted. In this corner case, doctest execution seem to differ from Python.
----------
Added file: http://bugs.python.org/file34790/doctest.txt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21178>
_______________________________________
More information about the Python-bugs-list
mailing list