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