summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2009-04-16 19:07:37 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2009-04-16 19:07:37 (GMT)
commit74f045088d4dd1fd2485631efccda9de65200a39 (patch)
treeb906970f5eda5be7a6c3064e8fba80e60a6b268f /Lib/test/test_logging.py
parent76162e305cedb4b332a6804df815044f297b4e95 (diff)
downloadcpython-74f045088d4dd1fd2485631efccda9de65200a39.zip
cpython-74f045088d4dd1fd2485631efccda9de65200a39.tar.gz
cpython-74f045088d4dd1fd2485631efccda9de65200a39.tar.bz2
Issue #5768: Change to Unicode output logic and test case for same.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index adeee7d..1e81568 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -894,6 +894,7 @@ class EncodingTest(BaseTest):
message = u'\u0434\u043e \u0441\u0432\u0438\u0434\u0430\u043d\u0438\u044f'
#Ensure it's written in a Cyrillic encoding
writer_class = codecs.getwriter('cp1251')
+ writer_class.encoding = 'cp1251'
stream = cStringIO.StringIO()
writer = writer_class(stream, 'strict')
handler = logging.StreamHandler(writer)