summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2020-08-17 17:39:13 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2020-08-19 08:13:06 -0300
commit6ecbd008c417795a8a11563428d1706c4b4230f2 (patch)
tree18e777d3d4e02fe2655cc2837f1a4b5192cc58f0 /testing
parent73e06373dc67055bf83d9a1f6cf3242bc90a68c3 (diff)
downloadpytest-6ecbd008c417795a8a11563428d1706c4b4230f2.tar.gz
Change junit_family default to xunit2
Diffstat (limited to 'testing')
-rw-r--r--testing/deprecated_test.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py
index aab7b7b36..fb591d7d9 100644
--- a/testing/deprecated_test.py
+++ b/testing/deprecated_test.py
@@ -75,35 +75,6 @@ def test_external_plugins_integrated(testdir, plugin):
testdir.parseconfig("-p", plugin)
-@pytest.mark.parametrize("junit_family", [None, "legacy", "xunit2"])
-def test_warn_about_imminent_junit_family_default_change(testdir, junit_family):
- """Show a warning if junit_family is not defined and --junitxml is used (#6179)"""
- testdir.makepyfile(
- """
- def test_foo():
- pass
- """
- )
- if junit_family:
- testdir.makeini(
- """
- [pytest]
- junit_family={junit_family}
- """.format(
- junit_family=junit_family
- )
- )
-
- result = testdir.runpytest("--junit-xml=foo.xml")
- warning_msg = (
- "*PytestDeprecationWarning: The 'junit_family' default value will change*"
- )
- if junit_family:
- result.stdout.no_fnmatch_line(warning_msg)
- else:
- result.stdout.fnmatch_lines([warning_msg])
-
-
@pytest.mark.skip(reason="should be reintroduced in 6.1: #7361")
def test_fillfuncargs_is_deprecated() -> None:
with pytest.warns(