mirror of https://github.com/python/cpython
gh-91914: Fix test_curses on non-UTF-8 locale (GH-91919)
This commit is contained in:
parent
36306cf786
commit
f41c16bf51
|
@ -268,7 +268,12 @@ class TestCurses(unittest.TestCase):
|
|||
stdscr.echochar(b'A')
|
||||
stdscr.echochar(65)
|
||||
with self.assertRaises((UnicodeEncodeError, OverflowError)):
|
||||
stdscr.echochar('\u20ac')
|
||||
# Unicode is not fully supported yet, but at least it does
|
||||
# not crash.
|
||||
# It is supposed to fail because either the character is
|
||||
# not encodable with the current encoding, or it is encoded to
|
||||
# a multibyte sequence.
|
||||
stdscr.echochar('\u0114')
|
||||
stdscr.echochar('A', curses.A_BOLD)
|
||||
self.assertIs(stdscr.is_wintouched(), False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue