1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[6.0.x] Refs #35844 -- Relaxed GEOSIOTest.test02_wktwriter() test assertion.

Backport of 2d9c194d5a from main
This commit is contained in:
Mariusz Felisiak
2025-10-17 15:34:05 +02:00
parent fa772f4014
commit 915d10a57d

View File

@@ -41,10 +41,7 @@ class GEOSIOTest(SimpleTestCase):
def test02_wktwriter(self):
# Creating a WKTWriter instance, testing its ptr property.
wkt_w = WKTWriter()
msg = (
"Incompatible pointer type: "
"<class 'django.contrib.gis.geos.prototypes.io.LP_WKTReader_st'>."
)
msg = "Incompatible pointer type: "
with self.assertRaisesMessage(TypeError, msg):
wkt_w.ptr = WKTReader.ptr_type()