pydata / patsy

Describing statistical models in Python using symbolic formulas
Other
954 stars 104 forks source link

use pytest instead of nose #163

Closed pgajdos closed 3 years ago

pgajdos commented 4 years ago

nose is not maintained and will stop working in future python versions. Use pytest as a replacement.

The build will fail, will try to sort out.

pgajdos commented 4 years ago

Builds that now fail require not available versions of python and/or pandas.

I do not feel brave enough to switch from nosetests to pytest call in .travis.yml coverage commandline, but it is not necessary until you do not build against newer pythons (especially when you feel patsy EOL as per https://github.com/pydata/patsy/pull/162#issuecomment-688831172).

pgajdos commented 4 years ago

Note that I run these tests with pytest (without nose available) in %check section without any issues. For coverage, probably something like pytest-cov would have to be installed.

bashtage commented 4 years ago

You should remove nose as a dependency and only use pytest to run the tests.

matthewwardrop commented 3 years ago

Closed by #178. Thanks so much for your patches.