[issue2728] Failing decimal doctest

Mark Dickinson report at bugs.python.org
Thu May 1 04:27:50 CEST 2008


Mark Dickinson <dickinsm at gmail.com> 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, since that 
test doesn't use the DefaultContext:  it uses its own freshly created 
context instead.  So the patch removes the setting of traps from setUp, 
and removes tearDown entirely.

Added file: http://bugs.python.org/file10150/decimal_localcontext.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2728>
__________________________________


More information about the Python-bugs-list mailing list