From c304998ed785debbaccb21aa21e8c6bd2148fc0e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 4 Sep 2018 11:28:23 -0300 Subject: [PATCH] Remove commented out code --- src/_pytest/python.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 9ac216332..0fb7fb732 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -659,11 +659,6 @@ class Class(PyCollector): if not safe_getattr(self.obj, "__test__", True): return [] if hasinit(self.obj): - # self.warn( - # "C1", - # "cannot collect test class %r because it has a " - # "__init__ constructor" % self.obj.__name__, - # ) self.std_warn( "cannot collect test class %r because it has a " "__init__ constructor" % self.obj.__name__,