This commit is contained in:
2025-08-05 09:19:34 +08:00
commit 584548d006
1696 changed files with 53855 additions and 0 deletions
@@ -0,0 +1,7 @@
from scrapy_redis.utils import bytes_to_str
def test_bytes_to_str():
assert bytes_to_str(b"foo") == "foo"
# This char is the same in bytes or latin1.
assert bytes_to_str(b"\xc1", "latin1") == "\xc1"