Fixes #1169
The unittest.skip decorator runs @functools.wraps on self._testcase. functools.wraps expects a "__name__" attribute and this patch adds one. It might not be the correct fix, but it works for me.
This commit is contained in:
parent
af2d391903
commit
8de2c035e2
|
@ -134,6 +134,7 @@ class TestCaseFunction(pytest.Function):
|
|||
pass
|
||||
|
||||
def runtest(self):
|
||||
setattr(self._testcase, "__name__", self.name)
|
||||
self._testcase(result=self)
|
||||
|
||||
def _prunetraceback(self, excinfo):
|
||||
|
|
Loading…
Reference in New Issue