File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1725,7 +1725,7 @@ def parsefactories(
1725
1725
if holderobj in self ._holderobjseen :
1726
1726
return
1727
1727
1728
- # avoid accessing `@property` (and other descriptors) when iterating fixtures
1728
+ # Avoid accessing `@property` (and other descriptors) when iterating fixtures.
1729
1729
if not safe_isclass (holderobj ) and not isinstance (holderobj , types .ModuleType ):
1730
1730
holderobj_tp : object = type (holderobj )
1731
1731
else :
@@ -1742,7 +1742,7 @@ def parsefactories(
1742
1742
# fixture attribute.
1743
1743
continue
1744
1744
1745
- # ok we know it is a fixture -- now safe to look up on the _instance_
1745
+ # OK we know it is a fixture -- now safe to look up on the _instance_.
1746
1746
obj = getattr (holderobj , name )
1747
1747
1748
1748
if marker .name :
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ def prop(self):
264
264
assert result .ret == ExitCode .NO_TESTS_COLLECTED
265
265
266
266
def test_does_not_discover_properties (self , pytester : Pytester ) -> None :
267
+ """Regression test for #12446."""
267
268
pytester .makepyfile (
268
269
"""\
269
270
class TestCase:
@@ -276,6 +277,7 @@ def oops(self):
276
277
assert result .ret == ExitCode .NO_TESTS_COLLECTED
277
278
278
279
def test_does_not_discover_instance_descriptors (self , pytester : Pytester ) -> None :
280
+ """Regression test for #12446."""
279
281
pytester .makepyfile (
280
282
"""\
281
283
# not `@property`, but it acts like one
You can’t perform that action at this time.
0 commit comments