Skip to content

Commit 61a7b8b

Browse files
authored
chore: fix mocking with PyPy and new Cython 3.1 (#1586)
1 parent 53592fa commit 61a7b8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_handlers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ async def test_response_aggregation_random_delay():
18631863
addresses=[socket.inet_aton("10.0.1.2")],
18641864
)
18651865
mocked_zc = unittest.mock.MagicMock()
1866+
mocked_zc.loop = asyncio.get_running_loop()
18661867
outgoing_queue = MulticastOutgoingQueue(mocked_zc, 0, 500)
18671868

18681869
now = current_time_millis()
@@ -1930,6 +1931,7 @@ async def test_future_answers_are_removed_on_send():
19301931
addresses=[socket.inet_aton("10.0.1.3")],
19311932
)
19321933
mocked_zc = unittest.mock.MagicMock()
1934+
mocked_zc.loop = asyncio.get_running_loop()
19331935
outgoing_queue = MulticastOutgoingQueue(mocked_zc, 0, 0)
19341936

19351937
now = current_time_millis()

0 commit comments

Comments
 (0)