Skip to content

Commit 1cdd7a5

Browse files
Copilotpuddly
andcommitted
Replace serial_asyncio with serial_asyncio_fast in unit tests
Co-authored-by: puddly <[email protected]>
1 parent 794e2a6 commit 1cdd7a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def passthrough_serial_conn(loop, protocol_factory, url, *args, **kwargs):
154154
return fut
155155

156156
mocker.patch(
157-
"serial_asyncio.create_serial_connection", new=passthrough_serial_conn
157+
"serial_asyncio_fast.create_serial_connection", new=passthrough_serial_conn
158158
)
159159

160160
# So we don't have to import it every time

tests/test_uart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

33
import pytest
4-
from serial_asyncio import SerialTransport
4+
from serial_asyncio_fast import SerialTransport
55

66
import zigpy_znp.types as t
77
import zigpy_znp.config as conf
@@ -47,7 +47,7 @@ def create_serial_conn(loop, protocol_factory, url, *args, **kwargs):
4747

4848
return fut
4949

50-
mocker.patch("serial_asyncio.create_serial_connection", new=create_serial_conn)
50+
mocker.patch("serial_asyncio_fast.create_serial_connection", new=create_serial_conn)
5151

5252
return device, serial_interface
5353

0 commit comments

Comments
 (0)