diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-01 19:05:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 19:05:27 +0200 |
commit | 863aa7541d30247e7eb7a973ff68a7d36f16dc02 (patch) | |
tree | 012a582559776b8a4cd904f15f3bf816fa54bf13 /tests/gis_tests | |
parent | 03eec9ff6cc78e7c1bcf88bb76ecd11f0d433c72 (diff) | |
download | django-863aa7541d30247e7eb7a973ff68a7d36f16dc02.tar.gz |
Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index fd3f0b6ebd..f510b925ff 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1127,8 +1127,10 @@ class GEOSTest(SimpleTestCase, TestDataMixin): # Testing __getitem__ (doesn't work on Point or Polygon) if isinstance(g, Point): - with self.assertRaises(IndexError): - g.x + # IndexError is not raised in GEOS 3.8.0. + if geos_version_tuple() != (3, 8, 0): + with self.assertRaises(IndexError): + g.x elif isinstance(g, Polygon): lr = g.shell self.assertEqual("LINEARRING EMPTY", lr.wkt) |