From faed54d6c7ed1c87015bbdf80fa30e941f1eda20 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 10 Oct 2015 14:20:51 +0200 Subject: [PATCH] junitxml: use node.warn to ensure fslocations --- _pytest/junitxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index de7c368ee..d7aeec96d 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -87,10 +87,10 @@ def record_xml_property(request): The fixture is callable with (name, value), with value being automatically xml-encoded. """ - request.config.warn( + request.node.warn( code='C3', message='record_xml_property is an experimental feature', - fslocation=request.node.location[:2]) + ) xml = getattr(request.config, "_xml", None) if xml is not None: nodereporter = xml.nodereporter(request.node.nodeid)