comparison 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
comparison
equal deleted inserted replaced
4015:6eec11b197aa 4016:96a5e0845adb
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE. 19 # SOFTWARE.
20 20
21 # $Id: test_indexer.py,v 1.12 2008-09-11 18:48:07 schlatterbeck Exp $ 21 # $Id: test_indexer.py,v 1.13 2008-09-11 19:10:30 schlatterbeck Exp $
22 22
23 import os, unittest, shutil 23 import os, unittest, shutil
24 24
25 from roundup.backends import get_backend, have_backend 25 from roundup.backends import get_backend, have_backend
26 from roundup.backends.indexer_rdbms import Indexer 26 from roundup.backends.indexer_rdbms import Indexer
53 # have to work around that 53 # have to work around that
54 # Also work around some dbs not returning items in the expected 54 # Also work around some dbs not returning items in the expected
55 # order. This would be *so* much easier with python2.4's sorted. 55 # order. This would be *so* much easier with python2.4's sorted.
56 s1 = list(s1) 56 s1 = list(s1)
57 s1.sort() 57 s1.sort()
58 if s1 != s2: 58 if [i for x,y in zip(s1, s2) for i,j in enumerate(y) if x[i] != j]:
59 self.fail('contents of %r != %r'%(s1, s2)) 59 self.fail('contents of %r != %r'%(s1, s2))
60 60
61 def test_basics(self): 61 def test_basics(self):
62 self.dex.add_text(('test', '1', 'foo'), 'a the hello world') 62 self.dex.add_text(('test', '1', 'foo'), 'a the hello world')
63 self.dex.add_text(('test', '2', 'foo'), 'blah blah the world') 63 self.dex.add_text(('test', '2', 'foo'), 'blah blah the world')

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