mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Fixed some test structures. Thanks Mark Dickinson.
This commit is contained in:
parent
7c5c8e6823
commit
ee340e501d
2 changed files with 10 additions and 21 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue