Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 0ab8c58ca896643ea0bb0830a96274160d14cc69 1 parent 2aaa467
@bkg bkg authored claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/gis/tests/geoapp/tests.py
View
4 django/contrib/gis/tests/geoapp/tests.py
@@ -520,8 +520,8 @@ def test_gml(self):
if oracle:
# No precision parameter for Oracle :-/
gml_regex = re.compile(r'^<gml:Point srsName="SDO:4326" xmlns:gml="http://www.opengis.net/gml"><gml:coordinates decimal="\." cs="," ts=" ">-104.60925\d+,38.25500\d+ </gml:coordinates></gml:Point>')
- elif spatialite:
- # Spatialite has extra colon in SrsName
+ elif spatialite and connection.ops.spatial_version < (3, 0, 0):
+ # Spatialite before 3.0 has extra colon in SrsName
gml_regex = re.compile(r'^<gml:Point SrsName="EPSG::4326"><gml:coordinates decimal="\." cs="," ts=" ">-104.609251\d+,38.255001</gml:coordinates></gml:Point>')
else:
gml_regex = re.compile(r'^<gml:Point srsName="EPSG:4326"><gml:coordinates>-104\.60925\d+,38\.255001</gml:coordinates></gml:Point>')

0 comments on commit 0ab8c58

Please sign in to comment.
Something went wrong with that request. Please try again.