From d30d5c74a33a4330212bb83c5a7289fdf01d9065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 27 May 2021 13:41:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry_version_plugin/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poetry_version_plugin/plugin.py b/poetry_version_plugin/plugin.py index 5dfdb0e..cd88fce 100644 --- a/poetry_version_plugin/plugin.py +++ b/poetry_version_plugin/plugin.py @@ -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__ "