Skip to content

Commit d8b763d

Browse files
authored
Fix #1062: ignore warning from a Cirq function about Qiskit (#1063)
The code in `src/openfermion/testing/wrapped.py` calls `cirq.testing.assert_implements_consistent_protocols`. The latter funtion prints warnings about the Cirq function `assert_qasm_is_consistent_with_unitary` when Qiskit is not installed. This is irrelevant to testing OpenFermion; it doesn't do anything with QASM and we certainly don't want to introduce a dependency on Qiskit. Resolves issue #1062.
1 parent 5a9f472 commit d8b763d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev_tools/conf/pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ markers =
1818

1919
# Silence deprecation warnings about option "asyncio_default_fixture_loop_scope"
2020
asyncio_default_fixture_loop_scope = "function"
21+
22+
filterwarnings =
23+
ignore:Skipped assert_qasm_is_consistent_with_unitary because qiskit.*:UserWarning

0 commit comments

Comments
 (0)