[issue2728] Failing decimal doctest

2008-05-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited, r62638. Thank you both! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2728] Failing decimal doctest

2008-04-30 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Removed the old patch. Here's a better patch, that avoids changing the semantics of the threading tests. As far as I can tell, the setting and resetting of DefaultContext traps in DecimalTest's setUp and tearDown method was pointless, sinc

[issue2728] Failing decimal doctest

2008-04-30 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10149/decimal_localcontext.patch __ Tracker <[EMAIL PROTECTED]> __ _

[issue2728] Failing decimal doctest

2008-04-30 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: There are a couple of problems here. The direct reason for the failure is that there's an earlier doctest (around line 61 of decimal.py) that sets the precision of the current context to 18 instead of its default value of 28. The obvious

[issue2728] Failing decimal doctest

2008-04-30 Thread Benjamin Peterson
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 unde