1
0
mirror of https://github.com/django/django.git synced 2025-10-19 03:39:10 +00:00

Refs #35844 -- Relaxed GEOSIOTest.test02_wktwriter() test assertion.

This commit is contained in:
Mariusz Felisiak 2025-10-17 15:34:05 +02:00
parent f715bc8990
commit 2d9c194d5a

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()