Closed Horstage closed 5 years ago
It seems like it's not resolved yet.
C:\Python36_64\lib\site-packages\pytest_jira.py:99
C:\Python36_64\lib\site-packages\pytest_jira.py:99: 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
jira_run = marker.kwargs.get('run', jira_run)
C:\Python36_64\lib\site-packages\pytest_jira.py:268
C:\Python36_64\lib\site-packages\pytest_jira.py:268: 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
skip_if = mark.kwargs.get('skipif', True)
C:\Python36_64\lib\site-packages\pytest_jira.py:270
C:\Python36_64\lib\site-packages\pytest_jira.py:270: 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
if len(mark.args) == 0:
C:\Python36_64\lib\site-packages\pytest_jira.py:274
C:\Python36_64\lib\site-packages\pytest_jira.py:274: 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
for arg in mark.args:
@Horstage what is version of pytest you use ? Or do you know in what version this deprication warning was added ?
@lukas-bednar I use pytest-3.10.0 Seems like it has been added in pytest-3.7.0 (pytest changelog) Since pytest-4.0.0 these are no longer warnings, but errors
I see it was already present it 3.6.0, and I don't see it in 3.5.1 so I guess 3.6.0 is one which introduces this deprecation warning.
Works great! Thanks!