We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26b0d5 commit 80c6583Copy full SHA for 80c6583
1 file changed
doc/overview.rst
@@ -127,6 +127,8 @@ Each driver and resource can have an optional name. This parameter is required
127
for all manual creations of drivers and resources. To manually bind to a
128
specific driver set a binding mapping before creating the driver:
129
130
+.. doctest::
131
+
132
>>> from labgrid import Target
133
>>> from labgrid.resource import SerialPort
134
>>> from labgrid.driver import SerialDriver
@@ -166,7 +168,7 @@ Otherwise, `0` is returned as the default priority.
166
168
To set the priority of a protocol for a driver, add a class variable with the
167
169
name `priorities`, e.g.
170
-.. code-block:: python
171
+.. testcode::
172
173
import attr
174
from labgrid.driver import Driver
0 commit comments