1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate.

This commit is contained in:
Ad Timmering
2021-11-26 10:44:54 +09:00
committed by Mariusz Felisiak
parent fe76944269
commit bdf3e156b4
10 changed files with 35 additions and 17 deletions

View File

@@ -31,6 +31,13 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
if geom.hasz:
self.assertEqual(g.ewkt, geom.wkt)
def test_wkt_invalid(self):
msg = 'String input unrecognized as WKT EWKT, and HEXEWKB.'
with self.assertRaisesMessage(ValueError, msg):
fromstr('POINT(٠٠١ ٠)')
with self.assertRaisesMessage(ValueError, msg):
fromstr('SRID=٧٥٨٣;POINT(100 0)')
def test_hex(self):
"Testing HEX output."
for g in self.geometries.hex_wkt: