Bypass Python tests throwing base classes as exceptions for -builtin
Throwing builtin classes as exceptions is not supported
This commit is contained in:
parent
34eb4b15d3
commit
bbad7f96ab
9 changed files with 65 additions and 30 deletions
|
|
@ -68,14 +68,13 @@ if not ok:
|
|||
|
||||
# This is expected to fail with -builtin option
|
||||
# Throwing builtin classes as exceptions not supported
|
||||
try:
|
||||
raise Exception2()
|
||||
except Exception2:
|
||||
pass
|
||||
if not is_python_builtin():
|
||||
try:
|
||||
raise Exception2()
|
||||
except Exception2:
|
||||
pass
|
||||
|
||||
# This is expected to fail with -builtin option
|
||||
# Throwing builtin classes as exceptions not supported
|
||||
try:
|
||||
raise Exception1()
|
||||
except Exception1:
|
||||
pass
|
||||
try:
|
||||
raise Exception1()
|
||||
except Exception1:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue