Skip to content

Commit 4afe5a8

Browse files
committed
Changes from comments on PR ethereum#3116
1 parent 196bf62 commit 4afe5a8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/providers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ asynchronous context manager, can be found in the `websockets connection`_ docs.
277277
... if some_condition:
278278
... # unsubscribe from new block headers and break out of
279279
... # iterator
280-
... unsubscribed = await w3.eth.unsubscribe(subscription_id)
280+
... await w3.eth.unsubscribe(subscription_id)
281281
... break
282282
...
283283
... # still an open connection, make any other requests and get

web3/_utils/module_testing/persistent_connection_provider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ async def test_async_eth_subscribe_mocked(
292292
expected_formatted_result: Any,
293293
) -> None:
294294
sub_id = await async_w3.eth.subscribe(*subscription_params)
295-
assert sub_id is not None
296295
assert is_hexstr(sub_id)
297296

298297
async def _mocked_recv_coro() -> bytes:

0 commit comments

Comments
 (0)