File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
docs/source/reference/fixtures Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ when several unused TCP ports are required in a test.
51
51
.. code-block :: python
52
52
53
53
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()
56
55
57
56
unused_udp_port and unused_udp_port_factory
58
57
===========================================
Original file line number Diff line number Diff line change @@ -946,8 +946,8 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
946
946
obj , "is_hypothesis_test" , False
947
947
):
948
948
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."
951
951
)
952
952
953
953
You can’t perform that action at this time.
0 commit comments