def METHOD_NAME():
    """Test that failing to specify a measurement
    raises an exception"""
    dev = qml.device("default.qubit.legacy", wires=2)
    @qml.qnode(dev)
    def circuit(x):
        qml.RX(x, wires=0)
        return qml.PauliY(0)
    with pytest.raises(qml.QuantumFunctionError, match="must return either a single measurement"):
        _ = circuit(0.65)