]>
Commit | Line | Data |
---|---|---|
36a8fdfd DL |
1 | import pytest |
2 | import sys | |
3 | import os | |
4 | ||
5 | try: | |
6 | import _clippy | |
7 | except ImportError: | |
8 | sys.stderr.write('''these tests need to be run with the _clippy C extension | |
9 | module available. Try running "clippy runtests.py ...". | |
10 | ''') | |
11 | sys.exit(1) | |
12 | ||
13 | os.chdir(os.path.dirname(os.path.abspath(__file__))) | |
14 | raise SystemExit(pytest.main(sys.argv[1:])) |