diff options
author | Guido van Rossum <guido@python.org> | 1992-01-27 17:00:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-27 17:00:37 (GMT) |
commit | 3bead0984c802a2f709076bb9c8531fc67f56ee8 (patch) | |
tree | 853b49f1a9932b1f8296449bad1902dca7ea23df /Lib/test/test_opcodes.py | |
parent | 19a86e72df72ff8e0b3a6f0d97b233bd22b70b7d (diff) | |
download | cpython-3bead0984c802a2f709076bb9c8531fc67f56ee8.zip cpython-3bead0984c802a2f709076bb9c8531fc67f56ee8.tar.gz cpython-3bead0984c802a2f709076bb9c8531fc67f56ee8.tar.bz2 |
Initial revision
Diffstat (limited to 'Lib/test/test_opcodes.py')
-rw-r--r-- | Lib/test/test_opcodes.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py new file mode 100644 index 0000000..41f1b8f --- /dev/null +++ b/Lib/test/test_opcodes.py @@ -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' |