mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
* 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:
parent
17c52d8493
commit
6ea4845822
2 changed files with 127 additions and 119 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue