Skip to content

Pytest 3.8.0 warnings from datafiles

Summary

When using Pytest 3.8.0, buildstream tests throw out a load of warnings from datafiles.

This is documented in a datafiles issue

Steps to reproduce

# Clear eggs
rm -rf .eggs

# Run some tests
./setup.py test --addopts "tests/plugins"

What is the current bug behavior?

Lots of warnings are printed.

What is the expected correct behavior?

We should have a clean test output.

Relevant logs and/or screenshots

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:71: 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
  content = request.keywords.get('datafiles').args
/home/joshsmith/.local/lib/python3.5/site-packages/pytest_datafiles.py:76: 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
  options.update(request.keywords.get('datafiles').kwargs)

Possible fixes

Wait for a datafiles patch.


To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information