Lines Matching refs:unichr
257 self.assertRaises(TypeError, compile, unichr(0), 'f', 'exec')
519 return unichr(ord(unicode.__getitem__(self, index))+1)
568 self.assertRaises(UnicodeError, getattr, sys, unichr(sys.maxunicode))
576 self.assertRaises(UnicodeError, hasattr, sys, unichr(sys.maxunicode))
946 self.assertEqual(ord(unichr(sys.maxunicode)), sys.maxunicode)
1370 self.assertEqual(unichr(32), unicode(' '))
1371 self.assertEqual(unichr(65), unicode('A'))
1372 self.assertEqual(unichr(97), unicode('a'))
1374 unichr(sys.maxunicode),
1377 self.assertRaises(ValueError, unichr, sys.maxunicode+1)
1378 self.assertRaises(TypeError, unichr)
1379 self.assertRaises((OverflowError, ValueError), unichr, 2**32)