kvas-it / pytest-console-scripts

Pytest plugin for testing console scripts
MIT License
78 stars 14 forks source link

Warnings caused by pytest4 #12

Closed a96tudor closed 6 years ago

a96tudor commented 6 years ago

With the update to pytest 4, some changes cause warnings to be risen when using pytest_console_scripts. Here is a dump of the warning:

py27/lib/python2.7/site-packages/pytest_console_scripts.py:60: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
  mark_mode = launch_mode_mark.args[0] if launch_mode_mark else None

This can be solved by following the instructions available here: https://docs.pytest.org/en/latest/mark.html#updating-code

kvas-it commented 6 years ago

Thanks, Tudor, I have seen the warnings. This should be solved by this commit -- I just need to make a release.

kvas-it commented 6 years ago

Version 0.1.6 should fix your issue.

kvas-it commented 6 years ago

@a96tudor, how is your impression, is this solved now?

a96tudor commented 6 years ago

hey, yeah, it is. Thanks for this! sorry for the late reply!

kvas-it commented 6 years ago

Thanks for the confirmation!