Skip to content

Commit 4d6b9cf

Browse files
committed
Replace asyncio.TimeoutError with builtin TimeoutError
1 parent 3a12c4a commit 4d6b9cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_livestream.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for BlinkLiveStream class."""
22

3-
import asyncio
43
import ssl
54
import urllib.parse
65
from unittest import mock
@@ -666,7 +665,7 @@ async def test_recv_timeout_exception(self, mock_resp):
666665

667666
# Mock asyncio timeout exception
668667
mock_reader.read = mock.AsyncMock()
669-
mock_reader.read.side_effect = asyncio.TimeoutError()
668+
mock_reader.read.side_effect = TimeoutError()
670669
mock_reader.at_eof.return_value = False
671670

672671
self.livestream.target_reader = mock_reader

0 commit comments

Comments
 (0)