class_docstr: Tests for the expval function
class_docstr_tok: ["Tests","for","the","expval","function"]
docstr: Test that measuring a list of measurement values raises an error.
docstr_tok: ["Test","that","measuring","a","list","of","measurement","values","raises","an","error","."]
code: def test_measurement_value_list_not_allowed(self):
      """Test that measuring a list of measurement values raises an error."""
      m0 = qml.measure(0)
      m1 = qml.measure(1)
  
      with pytest.raises(
          ValueError,
          match="qml.expval does not support measuring sequences of measurements",
      ):
          _ = qml.expval([m0, m1])
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation, Shots
  from pennylane.measurements.expval import ExpectationMP
label_desc: Use image node_id 6 for calling the TestExpval obj's underlying member method code with example usage: obj.test_measurement_value_list_not_allowed() without return types