summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools/test_c_analyzer/__init__.py
blob: d0b4c045104d768f1aed8647fd9ad849e5064aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import contextlib
import os.path
import test.test_tools
from test.support import load_package_tests


@contextlib.contextmanager
def tool_imports_for_tests():
    test.test_tools.skip_if_missing('c-analyzer')
    with test.test_tools.imports_under_tool('c-analyzer'):
        yield


def load_tests(*args):
    return load_package_tests(os.path.dirname(__file__), *args)