runtests.py 719 Bytes
Newer Older
dugupeiwen's avatar
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
import runpy
import os

if bool(os.environ.get('NUMBA_USE_TYPEGUARD')):
    # The typeguard import hook must be installed prior to importing numba.
    # Therefore, this cannot be part of the numba package.
    try:
        # version 3+ exports this at the top level
        from typeguard import install_import_hook
    except ImportError:
        # try location for version 2.x
        from typeguard.importhook import install_import_hook

    install_import_hook(packages=['numba'])

# ensure full tracebacks are available and no help messages appear in test mode
os.environ['NUMBA_DEVELOPER_MODE'] = '1'


if __name__ == "__main__":
    runpy.run_module('numba.runtests', run_name='__main__')