def check_func(func):
        def newfunc(*args, **kwargs):
            if "TRAVIS" in os.environ:
                pytest.skip("Skip on TRAVIS CI build.")
            return func(*args, **kwargs)
        setattr(newfunc, fnameattr, getattr(func, fnameattr))
        return newfunc