pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.31k stars 365 forks source link

Fix Nose deprecation warning with Pytest #901

Closed kuwv closed 1 year ago

kuwv commented 1 year ago

Pytest had builtin support for nose that is not deprecated in 7.0. The current tests used by invoke utitlize a setup() method which Pytest marks as Nose compatibility. Changing this method to setup_method() allows the tests to succeed without warnings.

kuwv commented 1 year ago

https://github.com/pyinvoke/invoke/pull/903

bitprophet commented 1 year ago

Right, and I think I eventually updated pytest-relaxed to account for setup_method style setups too. If I'm right about that, this shouldn't be a problem. Let's roll this into the PR.