Skip to content

Commit

Permalink
test: skip certain doctest on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Nov 15, 2024
1 parent c4e84ca commit b84c97e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qiskit_addon_mpf/costs/frobenius.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def setup_frobenius_problem(
You can then solve the problem and access the expansion coefficients like so:
.. testsetup::
>>> import sys, pytest
>>> if sys.platform.startswith("darwin"):
... pytest.skip("This doctest does not work on MacOS")
.. doctest::
>>> final_cost = problem.solve()
>>> print(coeffs.value) # doctest: +FLOAT_CMP
Expand Down

0 comments on commit b84c97e

Please sign in to comment.