Skip to content

Commit 10a2e67

Browse files
authored
Avoid AttributeError in terminalsummary (#94)
1 parent 830f953 commit 10a2e67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytest_run_parallel/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
295295
terminalreporter.line(report.nodeid)
296296
num_serial += 1
297297
elif getattr(report, "skipped", None):
298-
if report.keywords.get("thread_unsafe", 0):
298+
if getattr(report, "keywords", {}).get("thread_unsafe", 0):
299299
num_skipped += 1
300300

301301
if n_workers > 1 and not verbose_tests:

0 commit comments

Comments
 (0)