I (Julian Foad) wrote:
> Branko Čibej wrote:
>>  On 18.12.2014 03:48, Alexey Neyman wrote:
>>>  Any objections to the attached fix?
>>> 
>>>>  + def _assertListEqual(self, l1, l2):
>>>>  + """Poor man's replacement for assertListEqual, available in Python
>>>>  2.7+"""
[...]
> So isn't it best just to call assertEqual() in the first place? It sounds 
> like that will delegate to assertListEqual() if available, and work in a 
> simpler 
> older way otherwise.

The Python 2.6 docs show assertEqual comparing lists:
https://docs.python.org/2.6/library/unittest.html#basic-example

    self.assertEqual(self.seq, range(10))

- Julian

Reply via email to