Skip to content

Commit

Permalink
Fix expected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yecril23pl authored and Kludex committed Sep 29, 2024
1 parent 926fd7a commit df62747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ def test_bad_start_boundary(self) -> None:

self.make("boundary")
data = b"--Boundary\r\nfoobar"
with self.assertRaisesRegex(MultipartParseError, "Expected %r, got %r" % (b"b"[0], b"B"[0])):
with self.assertRaisesRegex(MultipartParseError, "Expected boundary character %r, got %r" % (b"b"[0], b"B"[0])):
self.f.write(data)

def test_octet_stream(self) -> None:
Expand Down

0 comments on commit df62747

Please # to comment.