Message70392
| Author |
benjamin.peterson |
| Recipients |
amaury.forgeotdarc, benjamin.peterson, pitrou |
| Date |
2008年07月29日.13:32:11 |
| SpamBayes Score |
0.006977538 |
| Marked as misclassified |
No |
| Message-id |
<1afaf6160807290632o58bf4efcx636da8acf3d7384d@mail.gmail.com> |
| In-reply-to |
<1217338217.45.0.494421902789.issue3462@psf.upfronthosting.co.za> |
| Content |
On Tue, Jul 29, 2008 at 8:30 AM, Amaury Forgeot d'Arc
<report@bugs.python.org> wrote:
>
> Amaury Forgeot d'Arc <amauryfa@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? |
|