Skip to content

Commit

Permalink
fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Sep 10, 2024
1 parent 160798b commit 850a5fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qiskit_addon_obp/backpropagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ def backpropagate(

if max_seconds is not None:
if sys.platform == "win32":
raise RuntimeError("The `max_seconds` argument is not available on Windows.")
# NOTE: we do cover the line below in our test suite, but our coverage summary only
# gathers data from UNIX runners.
raise RuntimeError( # pragma: no cover
"The `max_seconds` argument is not available on Windows."
)

def handle_timeout(signum, frame):
raise TimeoutException()
Expand Down

0 comments on commit 850a5fb

Please sign in to comment.