Add pytest.ini file to suppress pytest warnings.

Without this, when running with the default pytest on Ubuntu 20.04,
it will display warnings like:

.local/lib/python3.6/site-packages/_pytest/junitxml.py:417
  .local/lib/python3.6/site-packages/_pytest/junitxml.py:417: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
  Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.

Adding it here suppresses the warning.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
Chris Lalancette 2020-06-19 15:10:07 +00:00 committed by Christophe Bedard
parent 9978a2f1a8
commit 0a612d0aa9

2
pytest.ini Normal file
View file

@ -0,0 +1,2 @@
[pytest]
junit_family=xunit2