/usr/lib/python2.7/dist-packages/numba/runtests.py is in python-numba 0.34.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | def _main(argv, **kwds):
from numba.testing import run_tests
# This helper function assumes the first element of argv
# is the name of the calling program.
# The 'main' API function is invoked in-process, and thus
# will synthesize that name.
return run_tests(argv, defaultTest='numba.tests', **kwds).wasSuccessful()
def main(*argv, **kwds):
"""keyword arguments are accepted for backward compatiblity only.
See `numba.testing.run_tests()` documentation for details."""
return _main(['<main>'] + list(argv), **kwds)
if __name__ == '__main__':
import sys
# For parallel testing under Windows
from multiprocessing import freeze_support
freeze_support()
sys.exit(0 if _main(sys.argv) else 1)
|