[Python-checkins] CVS: /python/nondist/src/Compiler/tests test_except.py,1.2,1.3

Jeremy Hylton jhylton@cnri.reston.va.us
Tue, 15 Feb 2000 18:43:37 -0500


Update of /projects/cvsroot//python/nondist/src/Compiler/tests
In directory goon.cnri.reston.va.us:/home/jhylton/python/nondist/src/Compiler/tests

Modified Files:
	test_except.py 
Log Message:
test nested trys



Index: test_except.py
===================================================================
RCS file: /projects/cvsroot//python/nondist/src/Compiler/tests/test_except.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_except.py	2000/02/15 21:49:03	1.2
--- test_except.py	2000/02/15 23:43:35	1.3
***************
*** 7,14 ****
  def foo():
      try:
!         1/0
!     except quam():
!         pass
!     raise MyException, "testing"
  
  def bar():
--- 7,22 ----
  def foo():
      try:
!         try:
!             try:
!                 1/0
!             except quam():
!                 print "zero divide"
!             except:
!                 print "uhoh"
!         finally:
!             print "whatever"
!         raise MyException, "testing"
!     finally:
!         print "last word"
  
  def bar():
***************
*** 33,38 ****
      else:
          print "what went wrong?"
  
- baz()
  
  
--- 41,50 ----
      else:
          print "what went wrong?"
+ 
+ try:
+     baz()
+ finally:
+     print "finally"