Skip to content

Commit 5155609

Browse files
committed
Remove dependency on nose for Matplotlib 2.0 and above
1 parent a640a1b commit 5155609

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ install:
2929
- git clone git://github.com/astropy/ci-helpers.git
3030
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
3131

32+
# Remove nose if we are using Matplotlib 2.0. We force this here in case
33+
# nose was installed as a conda dependency of matplotlib even if not
34+
# specified explicitly.
35+
- conda remove --no-pin --force nose || true
36+
3237
# Need to use develop instead of install to make sure coverage works
3338
- python setup.py develop
3439

@@ -37,4 +42,4 @@ script:
3742
- py.test --mpl --cov pytest_mpl tests
3843

3944
after_success:
40-
- coveralls
45+
- coveralls

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ For more information on how to write tests to do this, see the **Using** section
1717
Installing
1818
----------
1919

20-
This plugin is compatible with Python 2.6, 2.7, and 3.3 and later, and requires [pytest](http://pytest.org), [matplotlib](http://www.matplotlib.org) and
21-
[nose](http://nose.readthedocs.org/) to be installed (nose is required by Matplotlib).
20+
This plugin is compatible with Python 2.6, 2.7, and 3.3 and later, and requires
21+
[pytest](http://pytest.org), [matplotlib](http://www.matplotlib.org). When using
22+
Matplotlib versions earlier than 2.0, [nose](http://nose.readthedocs.org/) is
23+
also required.
2224

2325
To install, you can do:
2426

pytest_mpl/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import matplotlib.pyplot as plt
4444
from matplotlib.testing.compare import compare_images
4545
from matplotlib.testing.decorators import ImageComparisonTest as MplImageComparisonTest
46-
from matplotlib.testing.decorators import cleanup
4746

4847
if sys.version_info[0] == 2:
4948
from urllib import urlopen

0 commit comments

Comments
 (0)