Skip to content
Snippets Groups Projects
Commit 2234c3f2 authored by Damien George's avatar Damien George
Browse files

tests: Add test for exception matching of a tuple of exceptions.

parent 4bcd04bc
No related branches found
No related tags found
No related merge requests found
# test exception matching against a tuple
try:
fail
except (Exception,):
print('except 1')
try:
fail
except (Exception, Exception):
print('except 2')
try:
fail
except (TypeError, NameError):
print('except 3')
try:
fail
except (TypeError, ValueError, Exception):
print('except 4')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment