diff test/test_indexer.py @ 4016:96a5e0845adb

now I understand the comment in that method... ...after my change it failed for python2.5. Now it works for all of them.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Thu, 11 Sep 2008 19:10:30 +0000
parents 6eec11b197aa
children dcca66d56815
line wrap: on
line diff
--- a/test/test_indexer.py	Thu Sep 11 18:48:07 2008 +0000
+++ b/test/test_indexer.py	Thu Sep 11 19:10:30 2008 +0000
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-# $Id: test_indexer.py,v 1.12 2008-09-11 18:48:07 schlatterbeck Exp $
+# $Id: test_indexer.py,v 1.13 2008-09-11 19:10:30 schlatterbeck Exp $
 
 import os, unittest, shutil
 
@@ -55,7 +55,7 @@
         # order. This would be *so* much easier with python2.4's sorted.
         s1 = list(s1)
         s1.sort()
-        if s1 != s2:
+        if [i for x,y in zip(s1, s2) for i,j in enumerate(y) if x[i] != j]:
             self.fail('contents of %r != %r'%(s1, s2))
 
     def test_basics(self):

Roundup Issue Tracker: http://roundup-tracker.org/