Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d29eb6232cf7d71e5f5bffd70668b3e18835797a authored by cvs2svn on 29 July 1993, 13:14:32 UTC
This commit was manufactured by cvs2svn to create tag 'release099'.
Tip revision: d29eb62
test_opcodes.py
# 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
	try: pass
	except: pass
	try: pass
	finally: pass
	n = n+i
if n <> 90:
	raise TestFailed, 'try inside for'
back to top