Skip to content

Commit d46b6b2

Browse files
authored
Merge pull request #4121 from labcodes/3713
Update usefixtures documentation
2 parents 0f5263c + dbaa946 commit d46b6b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/3713.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update usefixtures documentation to clarify that it can't be used with fixture functions.

doc/en/reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Mark a test function as using the given fixture names.
178178

179179
.. warning::
180180

181-
This mark can be used with *test functions* only, having no affect when applied
181+
This mark has no effect when applied
182182
to a **fixture** function.
183183

184184
.. py:function:: pytest.mark.usefixtures(*names)

0 commit comments

Comments
 (0)