-
Notifications
You must be signed in to change notification settings - Fork 100
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
Nose is obsolete #1031
Comments
We've actually retired nose for testing in favour of pytest, but clearly this change hasn't propagated to all the documentation yet. |
see #196 |
Ah, I can confirm that pytest also seems to run the tests, so it's indeed just a documentation issue. Farther down it suggests running |
I might as well add another issue about the same page here: the test doesn't work because If I remove those checks, then it still fails, because of an off-by-one indexing error. It seems like the test expects the indexes returned in |
In
without the additional Oh, and the test file needs a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions. |
Let's keep this open and consider it a documentation issue. I've been working on getting tests to run in combination with the new packaging work, so that's a separate thing, and then there's another potential separate project in removing the custom infrastructure from the tests and use the facilities that pytest offers. I've made #1044 for the latter. |
Ah, thanks. I guess you need to remove |
Yes I guess so…
|
Describe the bug
The tutorial at https://amuse.readthedocs.io/en/latest/tutorial/c_code.html guides the user to run the tests for the package using
nosetests
. This command is from thenose
package, which is unmaintained and obsolete and doesn't work on recent Python versions. It's been succeeded bynose2
, which at least for the trivial example tests seems to do work.To Reproduce
Expected behavior
Logs
Environment (please complete the following information):
Kubuntu 22.04
GCC 11.4.0
Additional context
This works at least for this trivial test:
The text was updated successfully, but these errors were encountered: