Use numbers that can be accurately represented on binary machines. I hope
this works on all platforms.
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py
index 03d6b9b..d39e6fd 100644
--- a/Lib/test/test_coercion.py
+++ b/Lib/test/test_coercion.py
@@ -65,8 +65,8 @@
return cmp(self.arg, other)
-candidates = [ 2, 2.2, 2L, 2+4j, [1], (2,), None,
- MethodNumber(1), CoerceNumber(8)]
+candidates = [ 2, 4.0, 2L, 2+0j, [1], (2,), None,
+ MethodNumber(1), CoerceNumber(2)]
infix_binops = [ '+', '-', '*', '/', '**', '%' ]
prefix_binops = [ 'divmod' ]