diff options
author | Stefan Krah <skrah@bytereef.org> | 2015-12-28 22:02:02 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2015-12-28 22:02:02 (GMT) |
commit | 53f2e0ad45e41c007f714e077ccf11643651ef28 (patch) | |
tree | c00ffd5dd955b9685de5c1a12fd014745b22f361 /Modules/_decimal/tests/deccheck.py | |
parent | ac1e7f6983ef4f0feef6389d458544bf924f6965 (diff) | |
download | cpython-53f2e0ad45e41c007f714e077ccf11643651ef28.zip cpython-53f2e0ad45e41c007f714e077ccf11643651ef28.tar.gz cpython-53f2e0ad45e41c007f714e077ccf11643651ef28.tar.bz2 |
Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs by
Mark Dickinson.
Diffstat (limited to 'Modules/_decimal/tests/deccheck.py')
-rw-r--r-- | Modules/_decimal/tests/deccheck.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py index ab7d5bd..f907531 100644 --- a/Modules/_decimal/tests/deccheck.py +++ b/Modules/_decimal/tests/deccheck.py @@ -50,8 +50,8 @@ Functions = { '__abs__', '__bool__', '__ceil__', '__complex__', '__copy__', '__floor__', '__float__', '__hash__', '__int__', '__neg__', '__pos__', '__reduce__', '__repr__', '__str__', '__trunc__', - 'adjusted', 'as_tuple', 'canonical', 'conjugate', 'copy_abs', - 'copy_negate', 'is_canonical', 'is_finite', 'is_infinite', + 'adjusted', 'as_integer_ratio', 'as_tuple', 'canonical', 'conjugate', + 'copy_abs', 'copy_negate', 'is_canonical', 'is_finite', 'is_infinite', 'is_nan', 'is_qnan', 'is_signed', 'is_snan', 'is_zero', 'radix' ), # Unary with optional context: @@ -128,7 +128,7 @@ ContextFunctions = { # Functions that require a restricted exponent range for reasonable runtimes. UnaryRestricted = [ '__ceil__', '__floor__', '__int__', '__trunc__', - 'to_integral', 'to_integral_value' + 'as_integer_ratio', 'to_integral', 'to_integral_value' ] BinaryRestricted = ['__round__'] |