[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

Serhiy Storchaka report at bugs.python.org
Thu Nov 24 00:45:32 EST 2016


Serhiy Storchaka added the comment:

Oh, how I missed this? I usually run tests with -Wa.

Since the patch is simple and fixes a regression introduced just before releasing beta 4, I'm fine with fixing it. We are trying to support tests warnings-free. Some buildbots can run tests with -We.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27100>
_______________________________________


More information about the Python-bugs-list mailing list