Skip to content

Commit

Permalink
Exclude line from coverage
Browse files Browse the repository at this point in the history
Parameter constraints prevent this branch to
be executed
  • Loading branch information
sebp committed Dec 31, 2024
1 parent 0e9ca7e commit f8b9855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sksurv/tree/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _check_max_features(self):
if self.max_features > 0.0:
max_features = max(1, int(self.max_features * self.n_features_in_))
else:
max_features = 0
max_features = 0 # pragma: no cover

if not 0 < max_features <= self.n_features_in_:
raise ValueError("max_features must be in (0, n_features]")
Expand Down

0 comments on commit f8b9855

Please sign in to comment.