diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2015-10-21 10:21:29 +0500 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-10-21 09:35:17 +0200 |
| commit | a272db70085887209946f28c9407409bfc0c7ee1 (patch) | |
| tree | 6f158f675e21dd97140a97a784cc942fd8198296 /tests | |
| parent | 48888a1a67db0404e5a31c9ca0349984e496f26f (diff) | |
Fixed #25580 -- Allowed `None` to be set as SRID value.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index 90d34bbad7..07139f05f9 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -650,6 +650,10 @@ class GEOSTest(unittest.TestCase, TestDataMixin): p3 = fromstr(p1.hex, srid=-1) # -1 is intended. self.assertEqual(-1, p3.srid) + # Testing that geometry SRID could be set to its own value + pnt_wo_srid = Point(1, 1) + pnt_wo_srid.srid = pnt_wo_srid.srid + @skipUnless(HAS_GDAL, "GDAL is required.") def test_custom_srid(self): """ Test with a srid unknown from GDAL """ |
