[issue3462] test_builtin fails after test_decimal
Benjamin Peterson
report at bugs.python.org
Tue Jul 29 15:32:12 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
On Tue, Jul 29, 2008 at 8:30 AM, Amaury Forgeot d'Arc
<report at bugs.python.org> wrote:
>
> Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
>
> Bingo! doctest sets the __builtins__._ variable,
> and the last doctest in decimal.py (in lexicographic order) is
> Decimal.__round__, which ends with
> >>> round(Decimal('sNaN123'), 0)
> Decimal('NaN123')
> This is the value you see in Benjamin's output.
>
> Here is a trivial patch:
Shouldn't this be fixed in test_decimal so it cleans properly after it's self?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3462>
_______________________________________
More information about the Python-bugs-list
mailing list