Skip to content

Commit d8410df

Browse files
committed
moved update under if
1 parent e9b756e commit d8410df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,9 @@ def pytest_runtest_makereport(item, call):
542542

543543
extras = getattr(report, "extras", [])
544544
if match := re.search(r"CNV-\d+", report.wasxfail):
545+
extras = getattr(report, "extras", [])
545546
extras.append(pytest_html.extras.url(f"https://issues.redhat.com/browse/{match.group(0)}"))
546-
547-
report.extras = extras
547+
report.extras = extras
548548

549549

550550
def pytest_fixture_setup(fixturedef, request):

0 commit comments

Comments
 (0)