From 667e70f5551da23b86dd6ee29b5f77d5c604d003 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 13 Sep 2017 12:17:08 +0200 Subject: [PATCH] switch out the placeholder MarkEvaluator in unittest plugin --- _pytest/unittest.py | 3 +-- changelog/2767.trivial | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelog/2767.trivial 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