mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 21:30:23 +07:00
PY-80427 Fixed IJ-MR-160807 GitOrigin-RevId: 966bdb2fd5e9a3a3ac9d06b4a7d65da3157160ba
25 lines
394 B
Python
25 lines
394 B
Python
def test_basic():
|
|
class A(object):
|
|
pass
|
|
|
|
class C(A):
|
|
pass
|
|
|
|
raise <warning descr="Exception doesn't inherit from base 'Exception' class">C()</warning>
|
|
|
|
class D(C, Exception):
|
|
pass
|
|
|
|
raise D()
|
|
|
|
|
|
# PY-5811
|
|
def test_unknown_type_exception():
|
|
class C(Unknown): pass
|
|
|
|
raise C()
|
|
|
|
|
|
# PY-55086
|
|
def test_raising_base_exception():
|
|
raise BaseException() |