Skip to content

Commit

Permalink
✅ Fix coverage (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed May 27, 2021
1 parent 4dfe9e5 commit 5d6b18e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion poetry_version_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def activate(self, poetry: Poetry, io: IO) -> None:
version = value_node.value
elif isinstance(value_node, ast.Str):
version = value_node.s
else:
else: # pragma: nocover
# This is actually covered by tests, but can't be
# reported by Coverage
# Ref: https://github.com/nedbat/coveragepy/issues/198
continue
io.write_line(
"Setting package dynamic version to __version__ "
Expand Down

0 comments on commit 5d6b18e

Please sign in to comment.