Skip to content
This repository
Browse code

Float representation can be different for different Python versions

  • Loading branch information...
commit cd650662c795a3efb5b9f768b79e3212f47385d7 1 parent 1504383
Dmitry Vasiliev authored July 25, 2011

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  src/erlport/tests/erlterms.txt
7  src/erlport/tests/erlterms.txt
@@ -203,15 +203,16 @@ Float values:
203 203
 
204 204
     >>> decode('\x83F\x00\x00\x00\x00\x00\x00\x00\x00')
205 205
     (0.0, '')
206  
-    >>> decode('\x83F?\xf1\x99\x99\x99\x99\x99\x9a')
207  
-    (1.1000000000000001, '')
  206
+    >>> decode('\x83F?\xf1\x99\x99\x99\x99\x99\x9a') # doctest: +ELLIPSIS
  207
+    (1.1..., '')
208 208
     >>> decode('\x83F@$?4\xd6\xa1a\xe5')
209 209
     (10.12345, '')
210 210
 
211 211
     >>> decode('\x83c0.00000000000000000000e+00\x00\x00\x00\x00\x00')
212 212
     (0.0, '')
213 213
     >>> decode('\x83c1.10000000000000008882e+00\x00\x00\x00\x00\x00')
214  
-    (1.1000000000000001, '')
  214
+    ... # doctest: +ELLIPSIS
  215
+    (1.1..., '')
215 216
     >>> decode('\x83c1.01234500000000000597e+01\x00\x00\x00\x00\x00')
216 217
     (10.12345, '')
217 218
 

0 notes on commit cd65066

Please sign in to comment.
Something went wrong with that request. Please try again.