summaryrefslogtreecommitdiff
blob: 0195e63da31caec535a3e8ee62135e5abd3e8337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This fixes doctests with Python 2.7.  With improved float handling,
float('37.86013') == 37.86013.  This seems to be the only way to
handle this test across Python versions.
===================================================================
--- src/icalendar/prop.py	2010-08-03 21:19:06.000000000 -0400
+++ src/icalendar/prop.py	2010-08-03 21:20:48.000000000 -0400
@@ -1196,8 +1196,8 @@
     '1.2;3.0'
 
     >>> g = vGeo.from_ical('37.386013;-122.082932')
-    >>> g
-    (37.386012999999998, -122.082932)
+    >>> g == (float('37.386013'), float('-122.082932'))
+    True
 
     >>> vGeo(g).ical()
     '37.386013;-122.082932'