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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user