diff --git a/_pytest/unittest.py b/_pytest/unittest.py index 585f81472..5c7f38f48 100644 --- a/_pytest/unittest.py +++ b/_pytest/unittest.py @@ -134,8 +134,7 @@ class TestCaseFunction(Function): try: skip(reason) except skip.Exception: - self._evalskip = MarkEvaluator(self, 'SkipTest') - self._evalskip.result = True + self._evalskip = True self._addexcinfo(sys.exc_info()) def addExpectedFailure(self, testcase, rawexcinfo, reason=""): diff --git a/changelog/2767.trivial b/changelog/2767.trivial new file mode 100644 index 000000000..c42a06e07 --- /dev/null +++ b/changelog/2767.trivial @@ -0,0 +1 @@ +* remove unnecessary mark evaluator in unittest plugin \ No newline at end of file