From eec6afd1162b5c3ab14df4f1478d9d8eb8a01959 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 13 Jan 2020 23:41:23 +0100 Subject: [PATCH] Explicitly set junit_family=xunit1 @ pytest config This change hides the deprecation warning and protects from failures in pytest==6.0.0 Ref: * https://github.com/ansible/ansible/pull/66445#discussion_r372530176 Co-Authored-By: Matt Clay --- test/lib/ansible_test/_data/pytest.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/lib/ansible_test/_data/pytest.ini b/test/lib/ansible_test/_data/pytest.ini index 6426f2d4d7e..2ac564233c6 100644 --- a/test/lib/ansible_test/_data/pytest.ini +++ b/test/lib/ansible_test/_data/pytest.ini @@ -1,3 +1,9 @@ [pytest] xfail_strict = true mock_use_standalone_module = true +# It was decided to stick with "legacy" (aka "xunit1") for now. +# Currently used pytest versions all support xunit2 format too. +# Except the one used under Python 2.6 — it doesn't process this option +# at all. Ref: +# https://github.com/ansible/ansible/pull/66445#discussion_r372530176 +junit_family = xunit1