bindings/pyfwfr/tests/test_fwf.py
def ignore_numpy_warning(test_func):
    """
    Ignore deprecated numpy warning. Official fix from numpy is to ignore the
    warning, but unittest warning settings override it and shows the warning.
    """
    def do_test(self, *args, **kwargs):
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore',
                                    message='numpy.ufunc size changed')
            test_func(self, *args, **kwargs)
    return do_test

    Ignore deprecated numpy warning. Official fix from numpy is to ignore the
    warning, but unittest warning settings override it and shows the warning.
    
Ignore deprecated numpy warning. Official fix from numpy is to ignore the
warning, but unittest warning settings override it and shows the warning.
Ignore deprecated numpy warning . Official fix from numpy is to ignore the warning but unittest warning settings override it and shows the warning .
def ignore_numpy_warning(test_func):
    def do_test(self, *args, **kwargs):
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore',
                                    message='numpy.ufunc size changed')
            test_func(self, *args, **kwargs)
    return do_test
def ignore_numpy_warning ( test_func ) : def do_test ( self , * args , ** kwargs ) : with warnings . catch_warnings ( ) : warnings . filterwarnings ( 'ignore' , message = 'numpy.ufunc size changed' ) test_func ( self , * args , ** kwargs ) return do_test
Ignore deprecated numpy warning.
Ignore deprecated numpy warning .
"""
    Ignore deprecated numpy warning. Official fix from numpy is to ignore the
    warning, but unittest warning settings override it and shows the warning.
    """
test_func