From ff6e110161b83c151d4a2f887c0910311ce35ef1 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 15 Jul 2023 22:54:15 +0300 Subject: [PATCH] fixtures: remove inaccurate comment unittest TestCases can also use `usefixtures`. Just remove this comment, it's not very helpful. --- src/_pytest/fixtures.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index 5fb8b881d..f736b42b1 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -1046,8 +1046,6 @@ class FixtureDef(Generic[FixtureValue]): # The names requested by the fixtures. self.argnames: Final = getfuncargnames(func, name=argname, is_method=unittest) # Whether the fixture was collected from a unittest TestCase class. - # Note that it really only makes sense to define autouse fixtures in - # unittest TestCases. self.unittest: Final = unittest # If the fixture was executed, the current value of the fixture. # Can change if the fixture is executed with different parameters.