Skip to content

Commit 06165bb

Browse files
committed
[tests.test_formatters] Add non-printable bytes to test_common_types_encoded
1 parent 61f88a9 commit 06165bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_formatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ def json_default(obj: Any) -> Any:
558558
(False, bool, False),
559559
(None, type(None), None),
560560
(b"some-bytes", str, "c29tZS1ieXRlcw=="),
561+
(b"fancy-bytes-\xf0\xf1", str, "ZmFuY3ktYnl0ZXMt8PE="),
561562
(datetime.time(16, 45, 30, 100), str, "16:45:30.000100"),
562563
(datetime.date(2024, 5, 5), str, "2024-05-05"),
563564
(datetime.datetime(2024, 5, 5, 16, 45, 30, 100), str, "2024-05-05T16:45:30.000100"),

0 commit comments

Comments
 (0)