@classmethod
    def setUpClass(cls):
        super(TestOLS, cls).setUpClass()
        try:
            import matplotlib as mpl
            mpl.use('Agg', warn=False)
        except __HOLE__:
            pass

        if not _have_statsmodels:
            raise nose.SkipTest("no statsmodels")
dataset/ETHPy150Open pydata/pandas/pandas/stats/tests/test_ols.py/TestOLS.setUpClass