Debian Codegraph @

testing/freeze/tox_run.py

raw
1 """
2 Called by tox.ini: uses the generated executable to run the tests in ./tests/
3 directory.
4 """
5
6 from __future__ import annotations
7
8
9 if __name__ == "__main__":
10 import os
11 import sys
12
13 executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script")
14 if sys.platform.startswith("win"):
15 executable += ".exe"
16 sys.exit(os.system(f"{executable} tests"))