From 0a612d0aa9972022dd92d47fb555c4d7eac7909c Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 19 Jun 2020 15:10:07 +0000 Subject: [PATCH] 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 --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..fe55d2e --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +junit_family=xunit2