@@ -354,28 +354,28 @@ async def test_PyOpenSSLEchoStream_gives_resource_busy_errors():
354354 # PyOpenSSLEchoStream will notice and complain.
355355
356356 s = PyOpenSSLEchoStream ()
357- with pytest .raises (_core .BusyResourceError ) as excinfo :
357+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
358358 async with _core .open_nursery () as nursery :
359359 nursery .start_soon (s .send_all , b"x" )
360360 nursery .start_soon (s .send_all , b"x" )
361361 assert "simultaneous" in str (excinfo .value )
362362
363363 s = PyOpenSSLEchoStream ()
364- with pytest .raises (_core .BusyResourceError ) as excinfo :
364+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
365365 async with _core .open_nursery () as nursery :
366366 nursery .start_soon (s .send_all , b"x" )
367367 nursery .start_soon (s .wait_send_all_might_not_block )
368368 assert "simultaneous" in str (excinfo .value )
369369
370370 s = PyOpenSSLEchoStream ()
371- with pytest .raises (_core .BusyResourceError ) as excinfo :
371+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
372372 async with _core .open_nursery () as nursery :
373373 nursery .start_soon (s .wait_send_all_might_not_block )
374374 nursery .start_soon (s .wait_send_all_might_not_block )
375375 assert "simultaneous" in str (excinfo .value )
376376
377377 s = PyOpenSSLEchoStream ()
378- with pytest .raises (_core .BusyResourceError ) as excinfo :
378+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
379379 async with _core .open_nursery () as nursery :
380380 nursery .start_soon (s .receive_some , 1 )
381381 nursery .start_soon (s .receive_some , 1 )
@@ -732,28 +732,28 @@ async def do_wait_send_all_might_not_block():
732732 await s .wait_send_all_might_not_block ()
733733
734734 s , _ = ssl_lockstep_stream_pair (client_ctx )
735- with pytest .raises (_core .BusyResourceError ) as excinfo :
735+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
736736 async with _core .open_nursery () as nursery :
737737 nursery .start_soon (do_send_all )
738738 nursery .start_soon (do_send_all )
739739 assert "another task" in str (excinfo .value )
740740
741741 s , _ = ssl_lockstep_stream_pair (client_ctx )
742- with pytest .raises (_core .BusyResourceError ) as excinfo :
742+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
743743 async with _core .open_nursery () as nursery :
744744 nursery .start_soon (do_receive_some )
745745 nursery .start_soon (do_receive_some )
746746 assert "another task" in str (excinfo .value )
747747
748748 s , _ = ssl_lockstep_stream_pair (client_ctx )
749- with pytest .raises (_core .BusyResourceError ) as excinfo :
749+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
750750 async with _core .open_nursery () as nursery :
751751 nursery .start_soon (do_send_all )
752752 nursery .start_soon (do_wait_send_all_might_not_block )
753753 assert "another task" in str (excinfo .value )
754754
755755 s , _ = ssl_lockstep_stream_pair (client_ctx )
756- with pytest .raises (_core .BusyResourceError ) as excinfo :
756+ with pytest .raises (_core ._multierror . NonBaseMultiError ) as excinfo :
757757 async with _core .open_nursery () as nursery :
758758 nursery .start_soon (do_wait_send_all_might_not_block )
759759 nursery .start_soon (do_wait_send_all_might_not_block )
0 commit comments