):
self.assertRaises(TypeError, self.testListNone[:1])
TypeError: 'NoneType' object is unsubscriptable
I thought that assertRaises will pass since TypeError exception will
be raised?
Ta,
Andrius
--
http://mail.python.org/mailman/listinfo/python-list
That was quick! Thanks Ian
On 23 May 2011 23:46, Ian Kelly wrote:
> On Mon, May 23, 2011 at 4:30 PM, Andrius wrote:
> > and I am expecting test to pass, but I am getting exception:
> > Traceback (most recent call last):
> >self.assertRaises(TypeError, self.testListNo