33import asyncio
44import unittest
55
6- import aiortc
76from aiortc .mediastreams import AudioStreamTrack , VideoStreamTrack
87from parameterized import parameterized
98
@@ -54,13 +53,13 @@ async def test_multi_camera(self, name, cameras, recv_audio, add_messaging):
5453 offer_builder .add_messaging ()
5554 stream = offer_builder .stream ()
5655
57- offer = await stream .start ()
56+ _ = await stream .start ()
5857 self .assertTrue (stream .is_started )
5958
6059 try :
6160 async with asyncio .timeout (2 ):
6261 await stream .wait_for_connection ()
63- except asyncio .TimeoutError as e :
62+ except asyncio .TimeoutError :
6463 self .fail ("Timed out waiting for connection" )
6564 self .assertTrue (stream .is_connected_and_ready )
6665
@@ -80,7 +79,7 @@ async def test_multi_camera(self, name, cameras, recv_audio, add_messaging):
8079 try :
8180 async with asyncio .timeout (1 ):
8281 await track .recv ()
83- except asyncio .TimeoutError as e :
82+ except asyncio .TimeoutError :
8483 self .fail ("Timed out waiting for audio frame" )
8584
8685 for cam in cameras :
@@ -94,7 +93,7 @@ async def test_multi_camera(self, name, cameras, recv_audio, add_messaging):
9493 try :
9594 async with asyncio .timeout (1 ):
9695 await stream .get_incoming_video_track (cam , False ).recv ()
97- except asyncio .TimeoutError as e :
96+ except asyncio .TimeoutError :
9897 self .fail ("Timed out waiting for video frame" )
9998
10099 await stream .stop ()
0 commit comments