Opened 12 years ago
Closed 12 years ago
#18795 closed Bug (fixed)
Failing GeoDjango tests
Reported by: | Julien Phalip | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The failures seem minor. It looks like a formatting issue of the values returned.
====================================================================== FAIL: test_json (django.contrib.gis.geos.tests.test_geos.GEOSTest) Testing GeoJSON input/output (via GDAL). ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vagrant/django/django/contrib/gis/geos/tests/test_geos.py", line 207, in test_json self.assertEqual(g.json, geom.json) AssertionError: u'{ "type": "Point", "coordinates": [ 100.000000, 0.000000 ] }' != '{ "type": "Point", "coordinates": [ 100.0, 0.0 ] }' ====================================================================== FAIL: test05_geometries (django.contrib.gis.gdal.tests.test_ds.DataSourceTest) Testing Geometries from Data Source Features. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vagrant/django/django/contrib/gis/gdal/tests/test_ds.py", line 184, in test05_geometries self.assertEqual(source.srs_wkt, g.srs.wkt) 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]]' ====================================================================== FAIL: test01e_json (django.contrib.gis.gdal.tests.test_geom.OGRGeomTest) Testing GeoJSON input/output. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vagrant/django/django/contrib/gis/gdal/tests/test_geom.py", line 114, in test01e_json self.assertEqual(g.json, geom.json) AssertionError: u'{ "type": "Point", "coordinates": [ 100.000000, 0.000000 ] }' != '{ "type": "Point", "coordinates": [ 100.0, 0.0 ] }'
Change History (4)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
#18831 was a duplicate with the following config:
OS X Lion, Python 2.7.2, PostgreSQL 9.1.3, PostGIS 1.5.3, GEOS 3.3.2, PROJ 4.7.0, GDAL 1.9.0.
So it is not specific to spatialite.
comment:3 by , 12 years ago
Summary: | Failing GeoDjango tests with spatialite → Failing GeoDjango tests |
---|
Yes, I confirm that I can also see those failures with postgresql 8.4 and postgis 1.5.2.
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed ticket description's formatting.