forked from pool/python-mpld3
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
|
---
|
||
|
mpld3/mplexporter/tests/test_basic.py | 2 +-
|
||
|
mpld3/test_plots/test_pandas_timeaxis.py | 2 +-
|
||
|
mpld3/tests/test_d3_snapshots.py | 2 +-
|
||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
--- a/mpld3/mplexporter/tests/test_basic.py
|
||
|
+++ b/mpld3/mplexporter/tests/test_basic.py
|
||
|
@@ -1,7 +1,7 @@
|
||
|
import matplotlib
|
||
|
import numpy as np
|
||
|
from distutils.version import LooseVersion
|
||
|
-from nose.plugins.skip import SkipTest
|
||
|
+from unittest import SkipTest
|
||
|
from numpy.testing import assert_warns
|
||
|
|
||
|
from ..exporter import Exporter
|
||
|
--- a/mpld3/test_plots/test_pandas_timeaxis.py
|
||
|
+++ b/mpld3/test_plots/test_pandas_timeaxis.py
|
||
|
@@ -7,7 +7,7 @@ def create_plot():
|
||
|
try:
|
||
|
import pandas as pd
|
||
|
except Exception:
|
||
|
- from nose import SkipTest
|
||
|
+ from unittest import SkipTest
|
||
|
raise SkipTest("pandas not installed")
|
||
|
df2_index = pd.date_range(start="2010-01-01", periods=100, freq='D')
|
||
|
df2 = pd.DataFrame({'a': range(100)}, index=df2_index)
|
||
|
--- a/mpld3/tests/test_d3_snapshots.py
|
||
|
+++ b/mpld3/tests/test_d3_snapshots.py
|
||
|
@@ -4,7 +4,7 @@ import glob
|
||
|
import matplotlib
|
||
|
from . import export
|
||
|
|
||
|
-from nose.plugins.skip import SkipTest
|
||
|
+from unittest import SkipTest
|
||
|
matplotlib.use('Agg')
|
||
|
|
||
|
TEST_PLOT_FILES = os.path.join(mpld3.BASE_PATH, 'mpld3/test_plots/*.py')
|