File: test_setup_skip_module.py

package info (click to toggle)
pytest 9.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,308 kB
  • sloc: python: 65,808; makefile: 45
file content (16 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# mypy: allow-untyped-defs
"""setUpModule is always called, even if all tests in the module are skipped"""

from __future__ import annotations

import unittest


def setUpModule():
    assert 0


@unittest.skip("skip all tests")
class Base(unittest.TestCase):
    def test(self):
        assert 0