summaryrefslogtreecommitdiff
path: root/tests/float/string_format_modulo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/string_format_modulo.py')
-rw-r--r--tests/float/string_format_modulo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/float/string_format_modulo.py b/tests/float/string_format_modulo.py
index 094461538..3c206b739 100644
--- a/tests/float/string_format_modulo.py
+++ b/tests/float/string_format_modulo.py
@@ -41,7 +41,10 @@ print(("%.40f" % 1e-300)[:2])
print(("%.40g" % 1e-1)[:2])
print(("%.40g" % 1e-2)[:2])
print(("%.40g" % 1e-3)[:2])
-print(("%.40g" % 1e-4)[:2])
+# Under Appveyor Release builds, 1e-4 was being formatted as 9.99999...e-5
+# instead of 0.0001. (Interestingly, it formatted correctly for the Debug
+# build). Avoid the edge case.
+print(("%.40g" % 1.1e-4)[:2])
print("%.0g" % 1) # 0 precision 'g'