New submission from Benjamin Peterson <[EMAIL PROTECTED]>: I was removing from __future__ import with_statment in the stdlib when I came across this disabled doctest in decimal.py:
# The string below can't be included in the docstring until Python 2.6 # as the doctest module doesn't understand __future__ statements """ >>> from __future__ import with_statement >>> print getcontext().prec 28 >>> with localcontext(): ... ctx = getcontext() ... ctx.prec += 2 ... print ctx.prec ... 30 >>> with localcontext(ExtendedContext): ... print getcontext().prec ... 9 >>> print getcontext().prec 28 """ When it was enabled, it failed. ---------- components: Library (Lib) messages: 66026 nosy: benjamin.peterson severity: normal status: open title: Failing decimal doctest type: behavior versions: Python 2.6 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2728> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com