blob: 0195e63da31caec535a3e8ee62135e5abd3e8337 [file] [log] [blame]
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'