Skip to content

Commit 20b7b58

Browse files
committed
Fixes CI
1 parent a1d6db6 commit 20b7b58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def pytest_collection_modifyitems(items) -> None: # noqa: WPS110
2323
"""Conditionally removes some collected docstests."""
2424
to_ignore_items = []
2525
for test_item in items:
26+
if not getattr(test_item, 'dtest', None):
27+
continue
2628
if Path(test_item.dtest.filename) in PATHS_TO_IGNORE_NOW:
2729
to_ignore_items.append(test_item)
2830

0 commit comments

Comments
 (0)