diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-03 01:52:11 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-03 01:52:11 +0000 |
commit | 38796d07a535618a9c12217c3d6d5d0309fceed5 (patch) | |
tree | e1940c6fcf777f683eabe60851ff339e38faa0e2 /Lib/test/test_coercion.py | |
parent | d18722b99dde76af4e00179fd92c2da1217f99b2 (diff) | |
download | cpython-git-38796d07a535618a9c12217c3d6d5d0309fceed5.tar.gz |
Use numbers that can be accurately represented on binary machines. I hope
this works on all platforms.
Diffstat (limited to 'Lib/test/test_coercion.py')
-rw-r--r-- | Lib/test/test_coercion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py index 03d6b9bf9d..d39e6fd046 100644 --- a/Lib/test/test_coercion.py +++ b/Lib/test/test_coercion.py @@ -65,8 +65,8 @@ class MethodNumber: 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' ] |