@@ -354,14 +354,14 @@ async def test_PyOpenSSLEchoStream_gives_resource_busy_errors():
354
354
# PyOpenSSLEchoStream will notice and complain.
355
355
356
356
s = PyOpenSSLEchoStream ()
357
- with pytest .raises (_core .BusyResourceError ) as excinfo :
357
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
358
358
async with _core .open_nursery () as nursery :
359
359
nursery .start_soon (s .send_all , b"x" )
360
360
nursery .start_soon (s .send_all , b"x" )
361
361
assert "simultaneous" in str (excinfo .value )
362
362
363
363
s = PyOpenSSLEchoStream ()
364
- with pytest .raises (_core .BusyResourceError ) as excinfo :
364
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
365
365
async with _core .open_nursery () as nursery :
366
366
nursery .start_soon (s .send_all , b"x" )
367
367
nursery .start_soon (s .wait_send_all_might_not_block )
@@ -732,14 +732,14 @@ async def do_wait_send_all_might_not_block():
732
732
await s .wait_send_all_might_not_block ()
733
733
734
734
s , _ = ssl_lockstep_stream_pair (client_ctx )
735
- with pytest .raises (_core .BusyResourceError ) as excinfo :
735
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
736
736
async with _core .open_nursery () as nursery :
737
737
nursery .start_soon (do_send_all )
738
738
nursery .start_soon (do_send_all )
739
739
assert "another task" in str (excinfo .value )
740
740
741
741
s , _ = ssl_lockstep_stream_pair (client_ctx )
742
- with pytest .raises (_core .BusyResourceError ) as excinfo :
742
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
743
743
async with _core .open_nursery () as nursery :
744
744
nursery .start_soon (do_receive_some )
745
745
nursery .start_soon (do_receive_some )
0 commit comments