dev-libs/xapian-bindings-1.2.4 fails tests with Python 2.7. Running test: leak_mset_items... FAILED pythontest2.py:1525:Expected equality: got 6468, expected 6465 1523 gc.collect() 1524 ->1525 expect(object_count, len(gc.get_objects())) 1526 1527 def test_custom_matchspy(): Xapian version: 1.2.4 Platform: Linux ... When reporting this problem, please quote all the preceding lines from "pythontest2.py:1525" onwards. Running test: matchingterms_iter... FAILED pythontest2.py:236:Expected equality: got 6633, expected 6614 234 del mterms, mterms2, mterms3, term, item, enquire, mset, msetiter 235 gc.collect() -> 236 expect(object_count, len(gc.get_objects())) 237 238 def test_queryterms_iter(): Xapian version: 1.2.4 Platform: Linux ... When reporting this problem, please quote all the preceding lines from "pythontest2.py:236" onwards.
Created attachment 257863 [details] xapian-bindings-1.2.4:20101223-121734.log
See http://trac.xapian.org/ticket/529
Xapian #529 certainly looked similar, but turned out to just be due to someone using older generated code which still had the bug which the testcase was checking for (and the reporter was using Python 2.4). This doesn't seem to be as simple as a Python 2.7 incompatibility, as the tests apparently pass with 2.7 on Microsoft Windows. It would be interesting to know what the extra objects are if someone wants to poke around, but if you just want a workaround, you could just patch to comment out the two "expect(object_count, len(gc.get_objects()))" checks for now.
FYI, I just fixed this in upstream trunk: http://trac.xapian.org/changeset/15457 Unless there's an issue with it, this fix will be in the next release (1.2.6).
xapian-bindings-1.2.7 is now in the tree, so this should be fixed.