Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add regression test
  • Loading branch information
ShaharNaveh committed Dec 16, 2025
commit 76f067aa7c6a60829f797178d6b8779d1a3a9a40
4 changes: 4 additions & 0 deletions extra_tests/snippets/builtin_bytes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from testutils import assert_raises, skip_if_unsupported

# new
Expand Down Expand Up @@ -611,6 +612,9 @@
assert b"\xc2\xae\x75\x73\x74".decode() == "®ust"
assert b"\xe4\xb8\xad\xe6\x96\x87\xe5\xad\x97".decode("utf-8") == "中文字"

# gh-2391
assert b"-\xff".decode(sys.getfilesystemencoding(), "surrogateescape") == "-\udcff"

# mod
assert b"rust%bpython%b" % (b" ", b"!") == b"rust python!"
assert b"x=%i y=%f" % (1, 2.5) == b"x=1 y=2.500000"
Expand Down
Loading