class_docstr: Tests for the var 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.var does not support measuring sequences of measurements",
      ):
          _ = qml.var([m0, m1])
  
file_path: pennylane/tests/measurements/test_var.py
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Variance, Shots
label_desc: Use image node_id 6 for calling the TestVar obj's underlying member method code with example usage: obj.test_measurement_value_list_not_allowed() without return types