Files
pytest2/testing/freeze/tox_run.py
Bruno Oliveira 8b54596639 Run pre-commit on all files
Running pre-commit on all files after replacing reorder-python-imports by isort.
2024-01-30 16:35:46 -03:00

14 lines
361 B
Python

"""
Called by tox.ini: uses the generated executable to run the tests in ./tests/
directory.
"""
if __name__ == "__main__":
import os
import sys
executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script")
if sys.platform.startswith("win"):
executable += ".exe"
sys.exit(os.system("%s tests" % executable))