[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1642813 - in /subversion/trunk/subversion/bindings/swig: include/svn_types.swg python/libsvn_swig_py/swigutil_py.c python/libsvn_swig_py/swigutil_py.h python/svn/core.py python/svn/repos.py python/tests/repository.py svn_repos.i

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 18 Dec 2014 10:58:31 +0000

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
Received on 2014-12-18 12:02:34 CET

This is an archived mail posted to the Subversion Dev mailing list.