mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
Initial revision
This commit is contained in:
parent
19a86e72df
commit
3bead0984c
9 changed files with 913 additions and 0 deletions
24
Lib/test/test_opcodes.py
Normal file
24
Lib/test/test_opcodes.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Python test set -- part 2, opcodes
|
||||
|
||||
from test_support import *
|
||||
|
||||
|
||||
print '2. Opcodes'
|
||||
print 'XXX Not yet fully implemented'
|
||||
|
||||
print '2.1 try inside for loop'
|
||||
n = 0
|
||||
for i in range(10):
|
||||
n = n+i
|
||||
try: 1/0
|
||||
except NameError: pass
|
||||
except ZeroDivisionError: pass
|
||||
except TypeError: pass
|
||||
finally: pass
|
||||
try: pass
|
||||
except: pass
|
||||
try: pass
|
||||
finally: pass
|
||||
n = n+i
|
||||
if n <> 90:
|
||||
raise TestFailed, 'try inside for'
|
Loading…
Add table
Add a link
Reference in a new issue