diff options
| author | Brian Galey <bkgaley@gmail.com> | 2012-09-22 15:10:42 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-09-22 15:10:42 +0200 |
| commit | 0ab8c58ca896643ea0bb0830a96274160d14cc69 (patch) | |
| tree | 0a06fa712688f289a2be3b566df33c28a8318e83 | |
| parent | 2aaa467a2ab57d5616d384a70e2b6f8217ece63e (diff) | |
Fixed #18968 -- Only use separate GML regex for SpatiaLite < 3.0
| -rw-r--r-- | django/contrib/gis/tests/geoapp/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py index cd3cec3074..7fc870f64b 100644 --- a/django/contrib/gis/tests/geoapp/tests.py +++ b/django/contrib/gis/tests/geoapp/tests.py @@ -520,8 +520,8 @@ class GeoQuerySetTest(TestCase): 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>') |
