Skip to content

Commit 8dca5c5

Browse files
committed
Cleaned up unusued funcs in testing.py
1 parent 879bd29 commit 8dca5c5

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

pandas/util/testing.py

-30
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from datetime import datetime
1616
from functools import wraps, partial
1717
from contextlib import contextmanager
18-
from distutils.version import LooseVersion
1918

2019
from numpy.random import randn, rand
2120
import numpy as np
@@ -317,35 +316,6 @@ def close(fignum=None):
317316
_close(fignum)
318317

319318

320-
def _skip_if_mpl_1_5():
321-
import matplotlib as mpl
322-
323-
v = mpl.__version__
324-
if LooseVersion(v) > LooseVersion('1.4.3') or str(v)[0] == '0':
325-
import pytest
326-
pytest.skip("matplotlib 1.5")
327-
else:
328-
mpl.use("Agg", warn=False)
329-
330-
331-
def _skip_if_no_scipy():
332-
import pytest
333-
334-
pytest.importorskip("scipy.stats")
335-
pytest.importorskip("scipy.sparse")
336-
pytest.importorskip("scipy.interpolate")
337-
338-
339-
def _skip_if_no_mock():
340-
try:
341-
import mock # noqa
342-
except ImportError:
343-
try:
344-
from unittest import mock # noqa
345-
except ImportError:
346-
import pytest
347-
raise pytest.skip("mock is not installed")
348-
349319
# -----------------------------------------------------------------------------
350320
# locale utilities
351321

0 commit comments

Comments
 (0)