Skip to content

Commit 26eacf9

Browse files
committed
simplify test error matching
Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
1 parent b4bff9d commit 26eacf9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/hazmat/asn1/test_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,8 @@ class Example:
238238
def test_fail_unsupported_size_annotation(self) -> None:
239239
with pytest.raises(
240240
TypeError,
241-
match=re.escape(
242-
"field invalid has a SIZE annotation, but SIZE "
243-
"annotations are only supported for fields of types: "
244-
"[SEQUENCE OF, BIT STRING]"
245-
),
241+
match="field invalid has a SIZE annotation, but SIZE "
242+
"annotations are only supported for fields of types: ",
246243
):
247244

248245
@asn1.sequence

0 commit comments

Comments
 (0)