Skip to content

Commit

Permalink
Lowers the configured Emax and Emin in test_vectors into the 32-bit r…
Browse files Browse the repository at this point in the history
…ange.
  • Loading branch information
tgregg committed Mar 1, 2019
1 parent 69cb698 commit 89f0f6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@
_FILE_ENCODINGS[_good_file(u'utf32.ion')] = _ENCODING_UTF32_BE

# Set these Decimal limits arbitrarily high because some test vectors require it. If users need decimals this large,
# they'll have to do this in their code too.
getcontext().Emax = 100000000000000000
getcontext().Emin = -100000000000000000
# they'll have to do this in their code too. CPython may store these in an ssize_t, so the values should remain in the
# 32-bit range for compatibility with 32-bit platforms.
getcontext().Emax = 2147483647
getcontext().Emin = -2147483648
getcontext().prec = 100000


Expand Down

0 comments on commit 89f0f6d

Please sign in to comment.