* Make the tests independent of the default precision.

* Change the default precision to 28 (to match VB's decimal type).
This commit is contained in:
Raymond Hettinger 2004-07-03 12:26:21 +00:00
parent 17c52d8493
commit 6ea4845822
2 changed files with 127 additions and 119 deletions

View file

@ -34,6 +34,13 @@ from decimal import *
from test.test_support import TestSkipped, run_unittest, run_doctest, is_resource_enabled
import threading
# Tests are built around these assumed context defaults
DefaultContext.prec=9
DefaultContext.rounding=ROUND_HALF_EVEN
DefaultContext.trap_enablers=dict.fromkeys(Signals, 0)
setcontext(DefaultContext)
TESTDATADIR = 'decimaltestdata'
if __name__ == '__main__':
file = sys.argv[0]