fixing code-style, keep flake8 happy
This commit is contained in:
parent
d1c725078a
commit
36b6f17727
|
@ -161,8 +161,8 @@ class TestCaseFunction(pytest.Function):
|
||||||
if (getattr(self._testcase.__class__, "__unittest_skip__", False) or
|
if (getattr(self._testcase.__class__, "__unittest_skip__", False) or
|
||||||
getattr(testMethod, "__unittest_skip__", False)):
|
getattr(testMethod, "__unittest_skip__", False)):
|
||||||
# If the class or method was skipped.
|
# If the class or method was skipped.
|
||||||
skip_why = (getattr(self._testcase.__class__, '__unittest_skip_why__', '')
|
skip_why = (getattr(self._testcase.__class__, '__unittest_skip_why__', '') or
|
||||||
or getattr(testMethod, '__unittest_skip_why__', ''))
|
getattr(testMethod, '__unittest_skip_why__', ''))
|
||||||
try:
|
try:
|
||||||
self._testcase._addSkip(self, self._testcase, skip_why)
|
self._testcase._addSkip(self, self._testcase, skip_why)
|
||||||
except TypeError: # PY2
|
except TypeError: # PY2
|
||||||
|
|
Loading…
Reference in New Issue