Opened 12 years ago

Closed 12 years ago

#18968 closed Bug (fixed)

Spatialite GML test failure

Reported by: Brian Galey Owned by: Brian Galey
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The GML returned from Spatialite has changed format in version 3.0 and above. When testing with Spatialite 3.0 and 3.1, the regex in test_gml no longer returns a match.

======================================================================
FAIL: test_gml (django.contrib.gis.tests.geoapp.tests.GeoQuerySetTest)
Testing GML output from the database using GeoQuerySet.gml().
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/.virtualenvs/django/django.git/django/contrib/gis/tests/geoapp/tests.py", line 530, in test_gml
    self.assertTrue(gml_regex.match(ptown.gml))
AssertionError: None is not true

----------------------------------------------------------------------
Ran 234 tests in 6.342s

FAILED (failures=1)

Change History (5)

comment:1 by Brian Galey, 12 years ago

Status: newassigned

comment:2 by Brian Galey, 12 years ago

A simple fix is available here:

https://github.com/bkg/django/tree/ticket_18968

comment:3 by Brian Galey, 12 years ago

Has patch: set

comment:4 by Claude Paroz, 12 years ago

Triage Stage: UnreviewedReady for checkin

comment:5 by Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: assignedclosed

In 0ab8c58ca896643ea0bb0830a96274160d14cc69:

Fixed #18968 -- Only use separate GML regex for SpatiaLite < 3.0

Note: See TracTickets for help on using tickets.
Back to Top