Skip to content

Commit

Permalink
fix parameterized tests to be sorted so that the collection reports m…
Browse files Browse the repository at this point in the history
…atch across threads
  • Loading branch information
Coull committed Aug 15, 2024
1 parent 04b75d9 commit d9bcc1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def test_invalid_standard_observable_target():
simulator.run(program, shots=0)


@pytest.mark.parametrize("shots", (0, 10))
@pytest.mark.parametrize("shots", [0, 10])
def test_invalid_hermitian_target(shots):
qasm = """
OPENQASM 3.0;
Expand Down Expand Up @@ -863,7 +863,7 @@ def test_basis_rotation_all(caplog):

@pytest.mark.parametrize(
"qasm, error_string",
(
[
(
"""
qubit[2] q;
Expand Down Expand Up @@ -895,7 +895,7 @@ def test_basis_rotation_all(caplog):
""",
"Conflicting result types applied to a single qubit",
),
),
],
)
def test_partially_overlapping_basis_rotation(qasm, error_string):
with pytest.raises(ValueError, match=error_string):
Expand Down

0 comments on commit d9bcc1a

Please sign in to comment.