-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Switch to pytest #10856
Comments
I'm willing to work on this, if someone else isn't actively working on it. |
@hameerabbasi It's done, just not merged. |
Is there anything I can help with? |
@mattip It's pretty much done and I'm about 1/2 through updating the documentation. Changing some of the ci tests to not import nose could be helpful. Nose is still used, when available, to test the nose decorators we are keeping around for downstream folks who still rely on the NumPy nose testing framework. |
If you are looking for other things to do for the first day on the job, I would like to branch 1.15 fairly soon, so PR's with the 1.15 milestone could use review. |
A couple of things I noticed, are they issues that need to be cleaned up?
|
The first one: does doing an in-place build first help? The third: can the default pytest selection markers be configured in conftest.py or only in the ini file? |
About running pytest without For this first version with pytest, I think it is OK to still require here is what I did
|
That error message goes away after I don't know how pytest is exactly intended to be used with packages that require built components. |
Even with pre-pytest |
@hameerabbasi: not for me though, probably depends on the environment setup. |
@pv IIRC, the tests ran fine but there was exactly one failed test regarding f2py. Maybe an intermittent failure with that particular version. |
ok, so that makes my first comment a documentation problem 👍 About
|
@hameerabbasi we digress from the topic, but for me the inplace tests run differently if I have a system-wide |
Noticed the README mentions nose as well. |
Pushing off to 1.16 for the documentation updates. |
@charris can we mark documentation done and close? |
@mattip Hmm... quick review of last merge shows use of decorators that may still depend on nose. We should maybe make clear that almost all (IIRC) numpy decorators are to be avoided and replaced by pytest equivalents. The nose dependent decorators can be found in
and non-decorators
|
@mattip Any update on this? |
You wish to deprecate importing numpy.testing.decorators? |
Yes! They were needed for Nose back in the day, but are no longer needed as pytest supplies equivalents. |
Pushing this off to 1.17 as it isn't release critical, and we will catch most problems during code review. |
@mattip I think this is done, but I don't recall the details of your documentation changes at this point. |
Let's close this and open new issues for documentation or further transitions to native pytest semantics as needed. |
pytest_tools
directory.run_module_suite
from the test files.numpy-wheels
The text was updated successfully, but these errors were encountered: