Lines Matching refs:bytes
341 # that it's bytes and we don't crash
346 line, bytes,
347 "all lines of diff should be bytes, but got: %r" % line)
351 a = [b'hello', b'andr\xe9'] # iso-8859-1 bytes
352 b = [b'hello', b'andr\xc3\xa9'] # utf-8 bytes
361 # now with filenames (content and filenames are all bytes!)
431 # type of input content must be consistent: all str or all bytes
438 expect = "lines to compare must be str, not bytes (b'hello')"
444 expect = "all arguments must be bytes, not str ('hello')"
451 # cannot pass filenames as bytes if content is str (this may not be
469 "all arguments must be bytes, not str ('1 fév')",