@@ -354,28 +354,28 @@ 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 )
368
368
assert "simultaneous" in str (excinfo .value )
369
369
370
370
s = PyOpenSSLEchoStream ()
371
- with pytest .raises (_core .BusyResourceError ) as excinfo :
371
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
372
372
async with _core .open_nursery () as nursery :
373
373
nursery .start_soon (s .wait_send_all_might_not_block )
374
374
nursery .start_soon (s .wait_send_all_might_not_block )
375
375
assert "simultaneous" in str (excinfo .value )
376
376
377
377
s = PyOpenSSLEchoStream ()
378
- with pytest .raises (_core .BusyResourceError ) as excinfo :
378
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
379
379
async with _core .open_nursery () as nursery :
380
380
nursery .start_soon (s .receive_some , 1 )
381
381
nursery .start_soon (s .receive_some , 1 )
@@ -732,28 +732,28 @@ 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 )
746
746
assert "another task" in str (excinfo .value )
747
747
748
748
s , _ = ssl_lockstep_stream_pair (client_ctx )
749
- with pytest .raises (_core .BusyResourceError ) as excinfo :
749
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
750
750
async with _core .open_nursery () as nursery :
751
751
nursery .start_soon (do_send_all )
752
752
nursery .start_soon (do_wait_send_all_might_not_block )
753
753
assert "another task" in str (excinfo .value )
754
754
755
755
s , _ = ssl_lockstep_stream_pair (client_ctx )
756
- with pytest .raises (_core .BusyResourceError ) as excinfo :
756
+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
757
757
async with _core .open_nursery () as nursery :
758
758
nursery .start_soon (do_wait_send_all_might_not_block )
759
759
nursery .start_soon (do_wait_send_all_might_not_block )
0 commit comments