(verbose=False)
Test runner for pytest.

    Parameters
    ----------
    verbose : bool
        Turn on verbose output.
Test runner for pytest.
Test runner for pytest .
def test(verbose=False):
    """Test runner for pytest.

    Parameters
    ----------
    verbose : bool
        Turn on verbose output.

    """
    import sys     # pylint: disable=import-outside-toplevel
    import pytest  # pylint: disable=import-outside-toplevel

    sysversion = sys.version.replace('\n', '')
    print(f'Python version: {sysversion}')
    print(f'pytest version: {pytest.__version__}')
    print(f'scipy  version: {sp.__version__}')
    print(f'numpy  version: {np.__version__}')
    print(f'pyamg  version: {__version__}')

    pyamgdir = __path__[0]
    args = [pyamgdir]

    if verbose:
        args += ['--verbose']
    else:
        args += ['--quiet']

    try:
        return pytest.main(args)
    except SystemExit as e:
        return e.code
def test ( verbose = False ) : import sys # pylint: disable=import-outside-toplevel import pytest # pylint: disable=import-outside-toplevel sysversion = sys . version . replace ( '\n' , '' ) print ( f'Python version: {sysversion}' ) print ( f'pytest version: {pytest.__version__}' ) print ( f'scipy  version: {sp.__version__}' ) print ( f'numpy  version: {np.__version__}' ) print ( f'pyamg  version: {__version__}' ) pyamgdir = __path__ [ 0 ] args = [ pyamgdir ] if verbose : args += [ '--verbose' ] else : args += [ '--quiet' ] try : return pytest . main ( args ) except SystemExit as e : return e . code