-
-
Notifications
You must be signed in to change notification settings - Fork 167
switch the test suite to pytest #166
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
Conversation
b8b8e91
to
ea46780
Compare
There are another couple of references to nose in the repo. Otherwise +1 from me |
I've found two references: one incantation in setup.py which is meant to enable The other reference to nose, https://github.com/numpy/numpydoc/blob/master/numpydoc/numpydoc.py#L174 |
Now that numpy is using pytest in the soon-to-be-released 1.15, is it time to update and merge this? There is currently a merge conflict |
Remove all nose imports, use plain asserts.
Rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've managed to use pytest-runner elsewhere, but I think this is fine
numpydoc/tests/test_docscrape.py
Outdated
assert_equal(len(doc['Other Parameters']), 1) | ||
assert_equal([n for n,_,_ in doc['Other Parameters']], ['spam']) | ||
assert len(doc['Other Parameters']) == 1 | ||
assert [n for n,_,_ in doc['Other Parameters']] == ['spam'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pep8: spaces after commas please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, fixed, here and elsewhere.
Thanks! |
This scratches my itch of not having
nose
installed anymore.