#5057: null merge with 3.3 (only add tests).

This commit is contained in:
Ezio Melotti 2012-11-05 00:14:34 +02:00
commit 944099ff16
1 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,9 @@ class TestTranforms(unittest.TestCase):
asm = dis_single('"\u0061\uffff"[1]')
self.assertIn("('\\uffff')", asm)
self.assertNotIn('BINARY_SUBSCR', asm)
asm = dis_single('"\U00012345abcdef"[3]')
self.assertIn("('c')", asm)
self.assertNotIn('BINARY_SUBSCR', asm)
# invalid code doesn't get optimized
# out of range