summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/tests/deccheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_decimal/tests/deccheck.py')
-rw-r--r--Modules/_decimal/tests/deccheck.py4
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)