Skip to content

Commit 26a7e7a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b341134 commit 26a7e7a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/source/reference/fixtures/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ when several unused TCP ports are required in a test.
5151
.. code-block:: python
5252
5353
def a_test(unused_tcp_port_factory):
54-
port1, port2 = unused_tcp_port_factory(), unused_tcp_port_factory()
55-
...
54+
_port1, _port2 = unused_tcp_port_factory(), unused_tcp_port_factory()
5655
5756
unused_udp_port and unused_udp_port_factory
5857
===========================================

pytest_asyncio/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
946946
obj, "is_hypothesis_test", False
947947
):
948948
pytest.fail(
949-
"test function `%r` is using Hypothesis, but pytest-asyncio "
950-
"only works with Hypothesis 3.64.0 or later." % item
949+
f"test function `{item!r}` is using Hypothesis, but pytest-asyncio "
950+
"only works with Hypothesis 3.64.0 or later."
951951
)
952952

953953

0 commit comments

Comments
 (0)