Skip to content

Commit

Permalink
strip whitespace from around markers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Sep 22, 2024
1 parent f06d44a commit 90ca0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbmake/pytest_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def collect(self) -> Generator[Any, Any, Any]:
markers = nb.metadata.get("execution", {}).get("nbmake", {}).get("markers", [])

if isinstance(markers, str):
markers = markers.split(",")
markers = [marker.strip() for marker in markers.split(",")]

for marker in markers:
item.add_marker(marker)
Expand Down

0 comments on commit 90ca0a3

Please sign in to comment.