File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 15
15
from datetime import datetime
16
16
from functools import wraps , partial
17
17
from contextlib import contextmanager
18
- from distutils .version import LooseVersion
19
18
20
19
from numpy .random import randn , rand
21
20
import numpy as np
@@ -317,35 +316,6 @@ def close(fignum=None):
317
316
_close (fignum )
318
317
319
318
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
-
349
319
# -----------------------------------------------------------------------------
350
320
# locale utilities
351
321
You can’t perform that action at this time.
0 commit comments