Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0157ebe

Browse files
committed
Fix chr() test (1000000 was accepted on a UCS4 build).
1 parent 2bf7138 commit 0157ebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def testRaising(self):
9999
except TypeError: pass
100100

101101
self.raise_catch(ValueError, "ValueError")
102-
self.assertRaises(ValueError, chr, 1000000)
102+
self.assertRaises(ValueError, chr, sys.maxunicode+1)
103103

104104
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
105105
try: x = 1/0

0 commit comments

Comments
 (0)