This fixes a failure apparently introduced by changes to warning
logic in python 3.4.2.
Conflicts:
tornado/test/log_test.py
self.assertEqual(self.get_output(), utf8(repr(b"\xe9")))
def test_utf8_logging(self):
- self.logger.error(u("\u00e9").encode("utf8"))
+ with ignore_bytes_warning():
+ self.logger.error(u("\u00e9").encode("utf8"))
if issubclass(bytes_type, basestring_type):
# on python 2, utf8 byte strings (and by extension ascii byte
# strings) are passed through as-is.