We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8697b76 + a202e5c commit b44cfbcCopy full SHA for b44cfbc
1 file changed
Lib/test/test_curses.py
@@ -2799,9 +2799,11 @@ def test_complexchar(self):
2799
# its single character. A narrow build just forms fewer cells.
2800
cc = curses.complexchar
2801
def storable(s):
2802
+ # ValueError if s has combining marks on a narrow build.
2803
+ # OverflowError if s is a multibyte character on a narrow build.
2804
try:
2805
cc(s)
- except ValueError:
2806
+ except (ValueError, OverflowError):
2807
return False
2808
return True
2809
0 commit comments