Skip to content

Commit ff6e110

Browse files
committed
fixtures: remove inaccurate comment
unittest TestCases can also use `usefixtures`. Just remove this comment, it's not very helpful.
1 parent 0e0ed2a commit ff6e110

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/_pytest/fixtures.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,6 @@ def __init__(
10461046
# The names requested by the fixtures.
10471047
self.argnames: Final = getfuncargnames(func, name=argname, is_method=unittest)
10481048
# Whether the fixture was collected from a unittest TestCase class.
1049-
# Note that it really only makes sense to define autouse fixtures in
1050-
# unittest TestCases.
10511049
self.unittest: Final = unittest
10521050
# If the fixture was executed, the current value of the fixture.
10531051
# Can change if the fixture is executed with different parameters.

0 commit comments

Comments
 (0)