Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions web3/_utils/module_testing/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from asyncio import (
iscoroutinefunction,
)
import copy
from typing import (
TYPE_CHECKING,
Any,
Expand Down Expand Up @@ -132,7 +131,7 @@ def _mock_request_handler(
return self._make_request(method, params)

request_id = (
next(copy.deepcopy(self.w3.provider.request_counter))
next(self.w3.provider.request_counter)
if hasattr(self.w3.provider, "request_counter")
else 1
)
Expand Down Expand Up @@ -201,7 +200,7 @@ async def _async_mock_request_handler(
return await self._make_request(method, params)

request_id = (
next(copy.deepcopy(self.w3.provider.request_counter))
next(self.w3.provider.request_counter)
if hasattr(self.w3.provider, "request_counter")
else 1
)
Expand Down