Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Finish removing nose#7935

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
anntzer merged 7 commits intomatplotlib:masterfromQuLogic:pytest-remove-nose
Jan 28, 2017
Merged

Conversation

QuLogic
Copy link
Member

I tried to keep anything intesting compatible with both nose and pytest for now, but anythingnew has been either removed/replaced or privatized so that people don't depend on it any further.

It works locally on Python 3, but let's see how CI likes it.

@QuLogicQuLogic added this to the2.1 (next point release) milestoneJan 24, 2017
@QuLogicQuLogicforce-pushed thepytest-remove-nose branch 2 times, most recently fromd7cdee2 to86a498eCompareJanuary 24, 2017 08:55
@QuLogic
Copy link
MemberAuthor

QuLogic commentedJan 24, 2017
edited
Loading

Python 2 failure is expected, but I'm not really sure what's up with Windows. Thoughts,@Kojoley?
Maybe not bother with thetests.py there?

@@ -516,6 +515,7 @@ def skip_if_command_unavailable(cmd):
try:
check_output(cmd)
except:
return skipif(True, reason='missing command: %s' % cmd[0])
import pytest
pytest.skip(reason='missing command: %s' % cmd[0])
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is wrong, but I'll fix it in the next update.

@NelleV
Copy link
Member

Hi@QuLogic
Can you ping me when you are done on this?

It was only required with nose because it needed a Matplotlib-providedplugin for nose.
It's a compatibility wrapper around nose/pytest, but has never beenreleased.
They've never been released and are no longer used.
Never been in a release and we don't want people depending on it.
Also, privatize all internal users which have never been released.
@QuLogicQuLogic changed the titleFinish removing nose[MRG] Finish removing noseJan 28, 2017
@QuLogic
Copy link
MemberAuthor

Because pytest requires some additional changes to get Python 2 working, I've scaled this back to just be about removing nose. I'll open the Py2 stuff in another PR shortly.

Ping@NelleV.

Copy link
Member

@NelleVNelleV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM 👍

@@ -101,7 +101,7 @@ def test_image_python_io():
plt.imread(buffer)


@knownfailureif(not HAS_PIL)
@needs_pillow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

minor nitpick: I prefer the explicit command.

@NelleVNelleV changed the title[MRG] Finish removing nose[MRG+1] Finish removing noseJan 28, 2017
@anntzer
Copy link
Contributor

anntzer commentedJan 28, 2017
edited
Loading

The tests did not run on 2.7 3.4 and 3.5 (rather only the few vestigial tests that nose finds did run --https://travis-ci.org/matplotlib/matplotlib/jobs/196044519#L1714). I think you need to update whatever travis runs before we can merge this.
(Or perhaps that can be a separate PR but I'd like to have that go in first then.)

@@ -181,7 +180,7 @@ def process_image(self, padded_src, dpi):
return t2

if LooseVersion(np.__version__) < LooseVersion('1.7.0'):
skip('Disabled on Numpy < 1.7.0')
pytest.skip('Disabled on Numpy < 1.7.0')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Actually this block can be removed as we require numpy>=1.7.1 now.

NelleV reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Removed now.

@anntzer
Copy link
Contributor

Tests pass locally for me on Py2 and Py3, with a few exceptions that@QuLogic says (on gitter) are known, and can certainly be fixed later. So I'll merge now as the current situation (effectively no CI on Py2) is much worse :-)

@anntzeranntzer merged commit7bcaa51 intomatplotlib:masterJan 28, 2017
@QuLogicQuLogic deleted the pytest-remove-nose branchJanuary 28, 2017 23:37
@QuLogicQuLogic changed the title[MRG+1] Finish removing noseFinish removing noseJan 28, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer left review comments

@NelleVNelleVNelleV approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@NelleV@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp