diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-01 19:05:27 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-01 19:06:44 +0200 |
commit | 2b901c1be462a12cad39af40a57a454ffe185406 (patch) | |
tree | e0f474ca9f235564e0b5138410d398bff3787e8b | |
parent | 4d20d2f7c2b8e74c3e85bd0716ebdcb3b35a70e6 (diff) | |
download | django-2b901c1be462a12cad39af40a57a454ffe185406.tar.gz |
[4.0.x] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1.
Backport of 863aa7541d30247e7eb7a973ff68a7d36f16dc02 from main
-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 e92c0c65ba..7311127e14 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1120,8 +1120,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) |