File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ def test_weakref_proxy():
62
62
with pytest.raises(ReferenceError):
63
63
p.some_meth()
64
64
65
+ [builtins fixtures/exception.pyi]
65
66
[file driver.py]
66
67
from native import test_weakref_proxy
67
68
@@ -88,6 +89,7 @@ def test_weakref_proxy_with_callback():
88
89
with pytest.raises(ReferenceError):
89
90
p.some_meth()
90
91
92
+ [builtins fixtures/exception.pyi]
91
93
[file driver.py]
92
94
from native import test_weakref_proxy_with_callback
93
95
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class BaseException:
22
22
class Exception (BaseException ): pass
23
23
class RuntimeError (Exception ): pass
24
24
class NotImplementedError (RuntimeError ): pass
25
+ class ReferenceError (Exception ): ...
25
26
26
27
if sys .version_info >= (3 , 11 ):
27
28
_BT_co = TypeVar ("_BT_co" , bound = BaseException , covariant = True )
You can’t perform that action at this time.
0 commit comments