Skip to content

Commit

Permalink
Emit the parents
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 31, 2024
1 parent 9492957 commit 9041747
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def extra_for(module: pathlib.Path) -> str:
try:
return f'; extra=="{mapping[str(module.parents[-2])]}"'
except (KeyError, IndexError):
if 'tests' in str(module):
raise ValueError(list(module.parents))
return ''


Expand Down

0 comments on commit 9041747

Please sign in to comment.