Skip to content

Remove dependency on nose for Matplotlib 2.0 and above #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh

# Remove nose if we are using Matplotlib 2.0. We force this here in case
# nose was installed as a conda dependency of matplotlib even if not
# specified explicitly.
- conda remove --no-pin --force nose || true

# Need to use develop instead of install to make sure coverage works
- python setup.py develop

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ For more information on how to write tests to do this, see the **Using** section
Installing
----------

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
[nose](http://nose.readthedocs.org/) to be installed (nose is required by Matplotlib).
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). When using
Matplotlib versions earlier than 2.0, [nose](http://nose.readthedocs.org/) is
also required.

To install, you can do:

Expand Down
1 change: 0 additions & 1 deletion pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import matplotlib.pyplot as plt
from matplotlib.testing.compare import compare_images
from matplotlib.testing.decorators import ImageComparisonTest as MplImageComparisonTest
from matplotlib.testing.decorators import cleanup

if sys.version_info[0] == 2:
from urllib import urlopen
Expand Down