Skip to content

Commit df8ff8d

Browse files
committed
Fix regex matcher test compatibility with Py3.13
1 parent bd9809a commit df8ff8d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test_pages/test_text.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def test_regex_matcher(self):
221221
# test RegexMatcher
222222
failed_pattern = "[\n"
223223
expected_error_msg = (
224-
"regex '[\n' did not compile: error: "
225224
"unterminated character set at position 0 (line 1, column 1)")
226225
with self.assertRaises(ValidationError) as cm:
227226
RegexMatcher(None, "",
@@ -239,7 +238,6 @@ def test_case_sensitive_regex_matcher(self):
239238
# test CaseSensitiveRegexMatcher
240239
failed_pattern = "[\n"
241240
expected_error_msg = (
242-
"regex '[\n' did not compile: error: "
243241
"unterminated character set at position 0 (line 1, column 1)")
244242
with self.assertRaises(ValidationError) as cm:
245243
CaseSensitiveRegexMatcher(None, "",

0 commit comments

Comments
 (0)