def requires_matplotlib(test): return test if has_matplotlib else unittest.skip('requires matplotlib')(test)