From 841dcf71ecb1acf84844a0d18929b1f75acdca91 Mon Sep 17 00:00:00 2001 From: Erik Rose Date: Tue, 22 Nov 2011 15:02:22 -0800 Subject: Re-unicode-ify some test literals. --- blessings/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blessings/tests.py b/blessings/tests.py index 5fcfb18..365a9f8 100644 --- a/blessings/tests.py +++ b/blessings/tests.py @@ -123,7 +123,7 @@ def test_formatting_functions(): eq_(t.bold('hi'), t.bold + 'hi'.encode('utf-8') + t.normal) eq_(t.green('hi'), t.green + 'hi'.encode('utf-8') + t.normal) # Test encoding of unicodes: - eq_(t.bold_green('boö'), t.bold + t.green + 'boö'.encode('utf-8') + t.normal) + eq_(t.bold_green(u'boö'), t.bold + t.green + u'boö'.encode('utf-8') + t.normal) eq_(t.bold_underline_green_on_red('boo'), t.bold + t.underline + t.green + t.on_red + 'boo'.encode('utf-8') + t.normal) # Don't spell things like this: @@ -137,7 +137,7 @@ def test_formatting_functions_without_tty(): eq_(t.bold('hi'), 'hi'.encode('utf-8')) eq_(t.green('hi'), 'hi'.encode('utf-8')) # Test encoding of unicodes: - eq_(t.bold_green('boö'), 'boö'.encode('utf-8')) # unicode + eq_(t.bold_green(u'boö'), u'boö'.encode('utf-8')) # unicode eq_(t.bold_underline_green_on_red('boo'), 'boo'.encode('utf-8')) eq_(t.on_bright_red_bold_bright_green_underline('meh'), 'meh'.encode('utf-8')) -- cgit v1.2.1