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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21178>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to