Repository navigation
Remove unhelpful helper usage from a test file - #16644
Conversation
`io.ascii` tests define a few helper functions that apparently provided compatibility with `nose`, but are not needed anymore.
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
I see lots of open PRs linked to #15782 . Those probably would be outdated after this one is merged and should be closed? |
|
All the other pull requests addressing #15782 seem to be abandoned. If there was any reasonable hope that any of them would be finalized then there would have been no need to open this example pull request. |
|
Thanks, all! |
|
I think we had an extensive discussion especially within #15782 in which cases |
|
The replacements that are suggested in the issue and applied here are simple and never make the tests worse. It is true that in some cases more extensive edits could improve our tests even more, but the issue has proven to be confusing enough for new contributors (I don't understand why, but empirically it is clear that it is so), therefore it is good to keep instructions and examples simple. More sophisticated follow-up can be done separately. |
Description
io.asciitests define a few helper functions that apparently provided compatibility withnose, but are not needed anymore (as reported in #15782). This pull request removes their usage from one test file. It also serves as an example how these (now-)useless helpers should be replaced in other files.