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