Skip to content

Commit 63536f4

Browse files
authored
MAINT: Remove unused mock import (#16908)
We import it, set it as an attribute, and then don't use it.
1 parent 9d13227 commit 63536f4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/tests/io/formats/test_printing.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,7 @@ class TestTableSchemaRepr(object):
127127
@classmethod
128128
def setup_class(cls):
129129
pytest.importorskip('IPython')
130-
try:
131-
import mock
132-
except ImportError:
133-
try:
134-
from unittest import mock
135-
except ImportError:
136-
pytest.skip("Mock is not installed")
137-
cls.mock = mock
130+
138131
from IPython.core.interactiveshell import InteractiveShell
139132
cls.display_formatter = InteractiveShell.instance().display_formatter
140133

0 commit comments

Comments
 (0)