Skip to content
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

Migrate tests to pytest #146

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

emilazy
Copy link

@emilazy emilazy commented Jul 28, 2024

nose has been deprecated and unmaintained for close to a decade now, and doesn’t work on Python 3.12. This migrates the tests and their runner to pytest. One set of parameterized tests was not executing due to a return where a yield should be, and I had to add a missing expected result to fix it, so this actually improves coverage!

Most of the conversion was done mechanically with https://github.com/pytest-dev/nose2pytest, so you might want to skip that commit when reviewing (it can be recreated locally with nose2pytest .).

There are still a bunch of deprecation warnings left in the codebase and the six dependency should probably go, but this unblocked my current nose clean‐up work in Nixpkgs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant