Skip to content

Commit ff264fc

Browse files
committed
remove _handle_skip
1 parent 1b376c0 commit ff264fc

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/_pytest/unittest.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,6 @@ def addSuccess(self, testcase):
187187
def stopTest(self, testcase):
188188
pass
189189

190-
def _handle_skip(self):
191-
# implements the skipping machinery (see #2137)
192-
# analog to pythons Lib/unittest/case.py:run
193-
testMethod = getattr(self._testcase, self._testcase._testMethodName)
194-
if getattr(self._testcase.__class__, "__unittest_skip__", False) or getattr(
195-
testMethod, "__unittest_skip__", False
196-
):
197-
# If the class or method was skipped.
198-
skip_why = getattr(
199-
self._testcase.__class__, "__unittest_skip_why__", ""
200-
) or getattr(testMethod, "__unittest_skip_why__", "")
201-
self._testcase._addSkip(self, self._testcase, skip_why)
202-
return True
203-
return False
204-
205190
def runtest(self):
206191
self._testcase(result=self)
207192

0 commit comments

Comments
 (0)