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
Ontje Lünsdorf added the comment:
Sorry, the test does not really expose the problem with Python 3.4. Here is an
updated example.
Python 2.7 and 3.3 succeed without warnings, while Python 3.4 warns about an
ignored exception.
--
Added file: http://bugs.python.org/file34761
New submission from Ontje Lünsdorf:
The attached doctest raises a warning since Python 3.4:
$ python -m doctest doctest.txt
Exception ignored in:
Traceback (most recent call last):
File "", line 4, in foo
NameError: name 'socket' is not defined
My guess is that docte