File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 1515from datetime import datetime
1616from functools import wraps , partial
1717from contextlib import contextmanager
18- from distutils .version import LooseVersion
1918
2019from numpy .random import randn , rand
2120import 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
You can’t perform that action at this time.
0 commit comments