diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-05-29 13:45:38 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-05-29 13:45:38 (GMT) |
commit | 6edda14b2968ca07b94a2fdde4dd43215222fcd8 (patch) | |
tree | d404076004687dade874d90bf7340af609ba5f50 /Modules/_decimal/tests/deccheck.py | |
parent | c70a6ae49bd162af06130e48a45579d445e058a8 (diff) | |
download | cpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.zip cpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.tar.gz cpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.tar.bz2 |
Issue #17768: Support newline fill character in decimal.py and NUL fill
character in _decimal.c.
Diffstat (limited to 'Modules/_decimal/tests/deccheck.py')
-rw-r--r-- | Modules/_decimal/tests/deccheck.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py index a2853ad..7a6b410 100644 --- a/Modules/_decimal/tests/deccheck.py +++ b/Modules/_decimal/tests/deccheck.py @@ -891,7 +891,7 @@ def test_ternary(method, prec, exp_range, restricted_range, itr, stat): def test_format(method, prec, exp_range, restricted_range, itr, stat): """Iterate the __format__ method through many test cases.""" for op in all_unary(prec, exp_range, itr): - fmt1 = rand_format(chr(random.randrange(32, 128)), 'EeGgn') + fmt1 = rand_format(chr(random.randrange(0, 128)), 'EeGgn') fmt2 = rand_locale() for fmt in (fmt1, fmt2): fmtop = (op[0], fmt) @@ -904,7 +904,7 @@ def test_format(method, prec, exp_range, restricted_range, itr, stat): except VerifyError as err: log(err) for op in all_unary(prec, 9999, itr): - fmt1 = rand_format(chr(random.randrange(32, 128)), 'Ff%') + fmt1 = rand_format(chr(random.randrange(0, 128)), 'Ff%') fmt2 = rand_locale() for fmt in (fmt1, fmt2): fmtop = (op[0], fmt) |