From b963bfef1e254eae2fcb6a24b6e43446d2c5617b Mon Sep 17 00:00:00 2001 From: gfyoung Date: Thu, 13 Jul 2017 10:38:05 -0700 Subject: [PATCH] MAINT: Remove unused mock import We import it, set it as an attribute, and then don't use it. --- pandas/tests/io/formats/test_printing.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pandas/tests/io/formats/test_printing.py b/pandas/tests/io/formats/test_printing.py index aae3ba31648ff..ec34e7656e01f 100644 --- a/pandas/tests/io/formats/test_printing.py +++ b/pandas/tests/io/formats/test_printing.py @@ -127,14 +127,7 @@ class TestTableSchemaRepr(object): @classmethod def setup_class(cls): pytest.importorskip('IPython') - try: - import mock - except ImportError: - try: - from unittest import mock - except ImportError: - pytest.skip("Mock is not installed") - cls.mock = mock + from IPython.core.interactiveshell import InteractiveShell cls.display_formatter = InteractiveShell.instance().display_formatter