test_ok2/testing/example_scripts/unittest/test_setup_skip_module.py

13 lines
233 B
Python
Raw Normal View History

"""setUpModule is always called, even if all tests in the module are skipped"""
import unittest
def setUpModule():
assert 0
@unittest.skip("skip all tests")
class Base(unittest.TestCase):
def test(self):
assert 0