parent
0cf207a452
commit
45d3e2e510
2 changed files with 28 additions and 44 deletions
|
|
@ -3,7 +3,9 @@ discard """
|
|||
output: '''foo
|
||||
bar
|
||||
Need odd and >= 3 digits##
|
||||
baz'''
|
||||
baz
|
||||
caught
|
||||
'''
|
||||
"""
|
||||
|
||||
# bug #1888
|
||||
|
|
@ -15,3 +17,21 @@ try:
|
|||
except ValueError:
|
||||
echo getCurrentExceptionMsg(), "##"
|
||||
echo "baz"
|
||||
|
||||
|
||||
# bug 7232
|
||||
try:
|
||||
discard
|
||||
except KeyError, ValueError:
|
||||
echo "except handler" # should not be invoked
|
||||
|
||||
|
||||
#bug 7239
|
||||
try:
|
||||
try:
|
||||
raise newException(ValueError, "asdf")
|
||||
except KeyError, ValueError:
|
||||
raise
|
||||
except:
|
||||
echo "caught"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue