From 72920458deabcf92378584c2f6c47d3a93c538fd Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 11 Oct 2014 22:59:15 -0400 Subject: [PATCH] Add another ignore_bytes_warning call to log_test. This fixes a failure apparently introduced by changes to warning logic in python 3.4.2. --- tornado/test/log_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tornado/test/log_test.py b/tornado/test/log_test.py index 6fad5ca02..102d3d42f 100644 --- a/tornado/test/log_test.py +++ b/tornado/test/log_test.py @@ -95,7 +95,8 @@ class LogFormatterTest(unittest.TestCase): 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, basestring_type): # on python 2, utf8 byte strings (and by extension ascii byte # strings) are passed through as-is. -- 2.47.2