Skip to content

Commit

Permalink
py2.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jan 3, 2024
1 parent d062e8d commit 23a1f59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ def test_zero_wide_conflict():
# Test characters considered both "wide" and "zero" width
# - (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In
# + (0x03000, 0x03029,), # Ideographic Space ..Hangzhou Numeral Nine
assert wcwidth.wcwidth(chr(0x03029), unicode_version='4.1.0') == 2
assert wcwidth.wcwidth(chr(0x0302a), unicode_version='4.1.0') == 0
assert wcwidth.wcwidth(unichr(0x03029), unicode_version='4.1.0') == 2
assert wcwidth.wcwidth(unichr(0x0302a), unicode_version='4.1.0') == 0

# - (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto
# + (0x0309b, 0x030ff,), # Katakana-hiragana Voiced..Katakana Digraph Koto
assert wcwidth.wcwidth(chr(0x03099), unicode_version='4.1.0') == 0
assert wcwidth.wcwidth(chr(0x0309a), unicode_version='4.1.0') == 0
assert wcwidth.wcwidth(chr(0x0309b), unicode_version='4.1.0') == 2
assert wcwidth.wcwidth(unichr(0x03099), unicode_version='4.1.0') == 0
assert wcwidth.wcwidth(unichr(0x0309a), unicode_version='4.1.0') == 0
assert wcwidth.wcwidth(unichr(0x0309b), unicode_version='4.1.0') == 2

0 comments on commit 23a1f59

Please sign in to comment.