We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6636fd commit 3a1c153Copy full SHA for 3a1c153
testing/logging/test_reporting.py
@@ -842,10 +842,13 @@ def test_log_file_unicode(testdir):
842
)
843
testdir.makepyfile(
844
"""
845
+ # -*- coding: utf-8 -*-
846
+ from __future__ import unicode_literals
847
import logging
848
+
849
def test_log_file():
850
logging.getLogger('catchlog').info("Normal message")
- logging.getLogger('catchlog').info("\u251c")
851
+ logging.getLogger('catchlog').info("├")
852
logging.getLogger('catchlog').info("Another normal message")
853
854
@@ -858,7 +861,7 @@ def test_log_file():
858
861
with open(log_file, encoding="utf-8") as rfh:
859
862
contents = rfh.read()
860
863
assert "Normal message" in contents
- assert "\u251c" in contents
864
+ assert six.unichr(0x251c) in contents
865
assert "Another normal message" in contents
866
867
0 commit comments