File size: 382 Bytes
6bef416
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Cross-platform pytest runner used by Makefile and CI."""

from __future__ import annotations

import os
import subprocess
import sys


def main() -> int:
    os.environ.setdefault("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
    args = sys.argv[1:] or ["-q"]
    return subprocess.call([sys.executable, "-m", "pytest", *args])


if __name__ == "__main__":
    raise SystemExit(main())