(self)
| 94 | self.assert_writes([b"??\n"]) |
| 95 | |
| 96 | def test_modified_null(self): |
| 97 | # Null characters are logged using "modified UTF-8". |
| 98 | self.log.write("\u0000\n") |
| 99 | self.assert_writes([b"\xc0\x80\n"]) |
| 100 | self.log.write("a\u0000\n") |
| 101 | self.assert_writes([b"a\xc0\x80\n"]) |
| 102 | self.log.write("\u0000b\n") |
| 103 | self.assert_writes([b"\xc0\x80b\n"]) |
| 104 | self.log.write("a\u0000b\n") |
| 105 | self.assert_writes([b"a\xc0\x80b\n"]) |
| 106 | |
| 107 | def test_nonstandard_str(self): |
| 108 | # String subclasses are accepted, but they should be converted |
nothing calls this directly
no test coverage detected