diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index 22686313a..98b2d13cf 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -250,7 +250,7 @@ def record_property(request): @pytest.fixture -def record_xml_property(request): +def record_xml_property(record_property): """(Deprecated) use record_property.""" import warnings from _pytest import deprecated @@ -260,7 +260,7 @@ def record_xml_property(request): stacklevel=2 ) - return record_property(request) + return record_property @pytest.fixture diff --git a/changelog/2770.removal.rst b/changelog/2770.removal.rst new file mode 100644 index 000000000..0e38009ab --- /dev/null +++ b/changelog/2770.removal.rst @@ -0,0 +1 @@ +``record_xml_property`` fixture is now deprecated in favor of the more generic ``record_property``. \ No newline at end of file