'Pickling a C{lambda} function ought to raise a L{pickle.PicklingError}.'

def test_lambdaRaisesPicklingError(self):

    self.assertRaises(pickle.PicklingError, pickle.dumps, lambdaExample)
    try:
        import cPickle
    except:
        pass
    else:
        self.assertRaises(cPickle.PicklingError, cPickle.dumps, lambdaExample)
