Skip to content

Commit 6385075

Browse files
committed
Fix linting
1 parent b7f50db commit 6385075

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/unittest.mock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ patch
14851485
By default this is ``'test'``, which matches the way :mod:`unittest` finds tests.
14861486
You can specify an alternative prefix by setting ``patch.TEST_PREFIX``.
14871487

1488-
Patch will raise a `RuntimeError` if passed some common misspellings of
1489-
the arguments autospec and spec_set. Pass the argument `unsafe` with the
1488+
Patch will raise a :exc:`RuntimeError` if passed some common misspellings of
1489+
the arguments autospec and spec_set. Pass the argument *unsafe* with the
14901490
value True to disable that check.
14911491

14921492
Patch can be used as a context manager, with the with statement. Here the
@@ -2425,7 +2425,7 @@ create_autospec
24252425
spec for an instance object by passing ``instance=True``. The returned mock
24262426
will only be callable if instances of the mock are callable.
24272427

2428-
`create_autospec` will raise a `RuntimeError` if passed some common
2428+
:func:`create_autospec` will raise a :exc:`RuntimeError` if passed some common
24292429
misspellings of the arguments autospec and spec_set. Pass the argument
24302430
`unsafe` with the value True to disable that check.
24312431

0 commit comments

Comments
 (0)