Skip to content

Commit ba295be

Browse files
committed
use assertEqual instead of assertRegex
1 parent 99ed7cc commit ba295be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_multilinestring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_create_multi_with_empty_component(self):
8787
LineString()
8888
]).wkt
8989

90-
self.assertRegex(str(exc.exception), "Can't create MultiLineString with empty component")
90+
self.assertEqual(str(exc.exception), "Can't create MultiLineString with empty component")
9191

9292

9393
def test_suite():

tests/test_multipoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_create_multi_with_empty_component(self):
7979
with self.assertRaises(EmptyPartError) as exc:
8080
wkt = MultiPoint([Point(0, 0), Point()]).wkt
8181

82-
self.assertRegex(str(exc.exception), "Can't create MultiPoint with empty component")
82+
self.assertEqual(str(exc.exception), "Can't create MultiPoint with empty component")
8383

8484

8585
def test_suite():

0 commit comments

Comments
 (0)