diff options
Diffstat (limited to 'urwid')
-rw-r--r-- | urwid/tests/test_widget.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/urwid/tests/test_widget.py b/urwid/tests/test_widget.py index 3a3da47..3ae9a93 100644 --- a/urwid/tests/test_widget.py +++ b/urwid/tests/test_widget.py @@ -32,6 +32,12 @@ class TextTest(unittest.TestCase): got = self.t.render((18,))._text assert got == expected, "got: %r expected: %r" % (got, expected) + def test5_encode_error(self): + urwid.set_encoding("ascii") + expected = [B("? ")] + got = urwid.Text(u'รป').render((3,))._text + assert got == expected, "got: %r expected: %r" % (got, expected) + class EditTest(unittest.TestCase): def setUp(self): |