Skip to content

Commit fa91a42

Browse files
committed
ci: no cover some blocks
1 parent 1ce7699 commit fa91a42

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/_spock/spock.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def generate_spock_functions(
6565
argnames = tuple(n for n in Code.from_function(where_block).getargs() if n != "_")
6666
module_col = collector.getparent(Module)
6767
if module_col is None:
68-
# pragma: no cover
69-
raise ValueError("module can't be None")
68+
raise ValueError("module can't be None") # pragma: no cover
7069
module = module_col.obj
7170
cls_col = collector.getparent(Class)
7271
cls = cls_col.obj if cls_col else None
@@ -79,8 +78,8 @@ def generate_spock_functions(
7978
if isinstance(argument, UnableEvalParams):
8079

8180
def failed(idx: int = idx) -> None:
82-
# pragma: no cover
83-
raise ValueError(f"Unable to eval index {idx} params")
81+
82+
raise ValueError(f"Unable to eval index {idx} params") # pragma: no cover
8483

8584
id = f"{name}[unable to eval {idx} params]"
8685
yield SpockFunction.from_parent(

0 commit comments

Comments
 (0)