File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ test_weakref_ref_with_callback()
4343
4444
4545[case testWeakrefProxy]
46- import pytest # type: ignore [import-not-found]
4746from weakref import proxy
4847from mypy_extensions import mypyc_attr
4948
@@ -60,7 +59,7 @@ def test_weakref_proxy():
6059 assert p.some_meth() == 1
6160 obj.some_meth()
6261 obj = None
63- with pytest.raises (ReferenceError):
62+ with assertRaises (ReferenceError):
6463 p.some_meth()
6564
6665[builtins fixtures/test-weakref.pyi]
@@ -71,7 +70,6 @@ test_weakref_proxy()
7170
7271
7372[case testWeakrefProxyWithCallback]
74- import pytest # type: ignore [import-not-found]
7573from weakref import proxy
7674from mypy_extensions import mypyc_attr
7775
@@ -88,7 +86,7 @@ def test_weakref_proxy_with_callback():
8886 assert p.some_meth() == 1
8987 obj.some_meth()
9088 obj = None
91- with pytest.raises (ReferenceError):
89+ with assertRaises (ReferenceError):
9290 p.some_meth()
9391
9492[builtins fixtures/test-weakref.pyi]
You can’t perform that action at this time.
0 commit comments