summaryrefslogtreecommitdiffstats
path: root/third_party/python/pytest/testing/freeze/tox_run.py
blob: 678a69c858a2cd4094307acf90e6e996c9800ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""
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))