We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcacc40 commit 8967976Copy full SHA for 8967976
src/_pytest/junitxml.py
@@ -311,7 +311,7 @@ def add_attr_noop(name, value):
311
attr_func = add_attr_noop
312
xml = getattr(request.config, "_xml", None)
313
314
- if xml.family != "xunit1":
+ if xml is not None and xml.family != "xunit1":
315
request.node.warn(
316
PytestWarning(
317
"record_xml_attribute is incompatible with junit_family: "
0 commit comments