Skip to content

Commit

Permalink
py2.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jun 26, 2024
1 parent c1e4f3b commit 0b8f2c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def test_east_asian_emojis_width_1():
def child():
term = TestTerminal()
# by @grayjk from https://github.com/jquast/blessed/issues/273
result = term.wrap('\u5973', 1)
assert result == ['\u5973']
result = term.wrap(u'\u5973', 1)
assert result == [u'\u5973']

# much like test_length_with_zwj_is_wrong(), blessed gets ZWJ wrong when wrapping, also.
# RGI_Emoji_ZWJ_Sequence ; family: woman, woman, girl, boy
result = term.wrap(u'\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F466', 1)
assert result == ['\U0001F469\u200D', '\U0001F469\u200D', '\U0001F467\u200D', '\U0001F466']
assert result == [u'\U0001F469\u200D', u'\U0001F469\u200D', u'\U0001F467\u200D', u'\U0001F466']

child()

0 comments on commit 0b8f2c5

Please sign in to comment.