summaryrefslogtreecommitdiffstats
path: root/python/runtests.py
blob: 70deaa35d0e8b0bb696290583086bacb1c7b1e61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest
import sys
import os

try:
    import _clippy
except ImportError:
    sys.stderr.write(
        """these tests need to be run with the _clippy C extension
module available.  Try running "clippy runtests.py ...".
"""
    )
    sys.exit(1)

os.chdir(os.path.dirname(os.path.abspath(__file__)))
raise SystemExit(pytest.main(sys.argv[1:]))