MCPcopy
hub / github.com/scrapy/scrapy / test_errors_argument

Method test_errors_argument

tests/test_utils_python.py:108–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 to_bytes(pytest)
107
108 def test_errors_argument(self):
109 assert to_bytes("a\ufffdb", "latin-1", errors="replace") == b"a?b"
110
111
112def test_memoizemethod_noargs():

Callers

nothing calls this directly

Calls 1

to_bytesFunction · 0.90

Tested by

no test coverage detected