test_ok2/testing/cx_freeze/runtests_script.py

10 lines
267 B
Python
Raw Normal View History

"""
Simple script that actually executes py.test runner when passed "--pytest" as
first argument; in this case, all other arguments are forwarded to pytest's
main().
"""
if __name__ == '__main__':
import sys
import pytest
sys.exit(pytest.main())