def get_test_runner():
    """Get a test runner for the tests.  Uses nose if available."""
    result = [sys.executable]
    if USE_NOSE:
        try:
            import nose
        except __HOLE__:
            result = [sys.executable]
        else:
            result = ['nosetests']
    return result
dataset/ETHPy150Open enthought/mayavi/mayavi/tests/runtests.py/get_test_runner