Fixed some test structures. Thanks Mark Dickinson.

This commit is contained in:
Facundo Batista 2008-05-02 17:39:00 +00:00
parent 7c5c8e6823
commit ee340e501d
2 changed files with 10 additions and 21 deletions

View file

@ -477,11 +477,7 @@ def localcontext(ctx=None):
# General Decimal Arithmetic Specification
return +s # Convert result to normal context
"""
# 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
>>> setcontext(DefaultContext)
>>> print getcontext().prec
28
>>> with localcontext():