2020-04-30 21:33:58 +02:00
|
|
|
import pytest
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
try:
|
|
|
|
import _clippy
|
|
|
|
except ImportError:
|
2022-10-28 11:59:41 +02:00
|
|
|
sys.stderr.write(
|
|
|
|
"""these tests need to be run with the _clippy C extension
|
2020-04-30 21:33:58 +02:00
|
|
|
module available. Try running "clippy runtests.py ...".
|
2022-10-28 11:59:41 +02:00
|
|
|
"""
|
|
|
|
)
|
2020-04-30 21:33:58 +02:00
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
raise SystemExit(pytest.main(sys.argv[1:]))
|