File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1414from .._highlevel_generic import StapledStream , aclose_forcefully
1515from .._highlevel_socket import SocketListener
1616from ..testing import *
17- from ..testing ._check_streams import _assert_raises
1817from ..testing ._memory_streams import _UnboundedByteQueue
1918
2019if TYPE_CHECKING :
@@ -239,19 +238,6 @@ async def child(i: int) -> None:
239238################################################################
240239
241240
242- async def test__assert_raises () -> None :
243- with pytest .raises (AssertionError ):
244- with _assert_raises (RuntimeError ):
245- 1 + 1 # noqa: B018 # "useless expression"
246-
247- with pytest .raises (TypeError ):
248- with _assert_raises (RuntimeError ):
249- "foo" + 1 # type: ignore[operator] # noqa: B018 # "useless expression"
250-
251- with _assert_raises (RuntimeError ):
252- raise RuntimeError
253-
254-
255241# This is a private implementation detail, but it's complex enough to be worth
256242# testing directly
257243async def test__UnboundeByteQueue () -> None :
You can’t perform that action at this time.
0 commit comments