Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Music21 is now fully compatible with pytest!
This project actually predates the earliest public releases of pytest and was already far along before pytest became a standard part of the Python ecosystem. Thus, music21 had written its own way of running tests because it had to -- there was nothing else standard out there.
In the past 10+ years, pytest has become the standard, but music21's doctest standard -- assuming that
from music21 import *has been run -- used to be a big impediment for using it.Thankfully there are now ways to make pytest work with how music21 has always written its documentation, so this long-desired partnership can take place!
v10 will retain the music21 test directory as a transition stage to using pytest as the sole source of testing in v11+