Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Ran Benita <ran@unusedvar.com>
17 lines
333 B
Python
17 lines
333 B
Python
# mypy: allow-untyped-defs
|
|
"""Skipping an entire subclass with unittest.skip() should *not* call setUpClass from a base class."""
|
|
|
|
import unittest
|
|
|
|
|
|
class Base(unittest.TestCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
assert 0
|
|
|
|
|
|
@unittest.skip("skip all tests")
|
|
class Test(Base):
|
|
def test_foo(self):
|
|
assert 0
|