Skip to content

Commit df88119

Browse files
committed
[docs] Improved readbility of headings on the fixtures reference in the docs.
The headings no longer use the "pre-formatted" text style. Signed-off-by: Michael Seifert <[email protected]>
1 parent 75a1a6c commit df88119

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/source/reference/fixtures.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Fixtures
33
========
44

5-
``event_loop``
6-
==============
5+
event_loop
6+
==========
77
Creates a new asyncio event loop based on the current event loop policy. The new loop
88
is available as the return value of this fixture or via `asyncio.get_running_loop <https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop>`__.
99
The event loop is closed when the fixture scope ends. The fixture scope defaults
@@ -42,13 +42,13 @@ If you need to change the type of the event loop, prefer setting a custom event
4242
If the ``pytest.mark.asyncio`` decorator is applied to a test function, the ``event_loop``
4343
fixture will be requested automatically by the test function.
4444

45-
``unused_tcp_port``
46-
===================
45+
unused_tcp_port
46+
===============
4747
Finds and yields a single unused TCP port on the localhost interface. Useful for
4848
binding temporary test servers.
4949

50-
``unused_tcp_port_factory``
51-
===========================
50+
unused_tcp_port_factory
51+
=======================
5252
A callable which returns a different unused TCP port each invocation. Useful
5353
when several unused TCP ports are required in a test.
5454

@@ -58,6 +58,6 @@ when several unused TCP ports are required in a test.
5858
port1, port2 = unused_tcp_port_factory(), unused_tcp_port_factory()
5959
...
6060
61-
``unused_udp_port`` and ``unused_udp_port_factory``
62-
===================================================
61+
unused_udp_port and unused_udp_port_factory
62+
===========================================
6363
Works just like their TCP counterparts but returns unused UDP ports.

0 commit comments

Comments
 (0)