class_docstr: Tests for integration with the PassthruQNode
class_docstr_tok: ["Tests","for","integration","with","the","PassthruQNode"]
docstr: Tests that an error is raised if diff_method='backprop' but not using
  the Autograd interface
docstr_tok: ["Tests","that","an","error","is","raised","if","diff_method='backprop","'","but","not","using","the","Autograd","interface"]
code: def test_error_backprop_wrong_interface(self, interface):
      """Tests that an error is raised if diff_method='backprop' but not using
      the Autograd interface"""
      dev = qml.device("default.qubit.autograd", wires=1)
  
      def circuit(x, w=None):
          qml.RZ(x, wires=w)
          return qml.expval(qml.PauliX(w))
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="default.qubit.autograd only supports diff_method='backprop' when using the autograd interface",
      ):
          qml.qnode(dev, diff_method="backprop", interface=interface)(
              circuit
          )
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_qubit_autograd import DefaultQubitAutograd
  from pennylane import DeviceError
label_desc: Use image node_id 14 for calling the TestPassthruIntegration obj's underlying member method code with example usage: obj.test_error_backprop_wrong_interface(interface) and returns: qml