I've fixed the tests and they pass under postgres9.1+postgis1.5
On Friday, August 24, 2012 10:21:08 AM UTC-5, Flavio Curella wrote: > > > Two of the failures are: > > AssertionError: u'{ "type": "Point", "coordinates": [ 100.000000, > 0.000000 ] }' != '{ "type": "Point", "coordinates": [ 100.0, 0.0 ] }' > > Could be a JSON serialization quirk? I don't have any JSON lib system-wide > nor in my virtualenv, so I know it's using the one shipped within Django. > Should we modify the test to unserialize (json.loads) and compare Python > objects? > > I've fixed these by deserializing and comparing the resulting python objects. > The other failure is: > > AssertionError: > 'GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]' > > != > 'GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]' > > If you compare the two string, the only difference is that the spatial > reference for the spheroid is "WGS_1984" instead of "WGS_84". > I'm not exactly sure if they are the same ref, or why and when it would > have changed. > Here I've just changed the expected result. I would love to hear from people using postgres8 if I broke the test for them. Thanks, Flavio. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/08leP7o2NLsJ. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.