Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349484 - dev-libs/xapian-bindings-1.2.5 fails tests with Python 2.7
Summary: dev-libs/xapian-bindings-1.2.5 fails tests with Python 2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.7
  Show dependency tree
 
Reported: 2010-12-23 12:23 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-09-16 14:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xapian-bindings-1.2.4:20101223-121734.log (xapian-bindings-1.2.4:20101223-121734.log,68.50 KB, text/plain)
2010-12-23 12:25 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-23 12:23:04 UTC
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.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-23 12:25:27 UTC
Created attachment 257863 [details]
xapian-bindings-1.2.4:20101223-121734.log
Comment 2 Johan Bergström 2011-01-07 18:46:57 UTC
See http://trac.xapian.org/ticket/529
Comment 3 Olly Betts 2011-01-13 12:06:48 UTC
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.
Comment 4 Olly Betts 2011-05-09 01:43:28 UTC
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).
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-09-16 14:01:16 UTC
xapian-bindings-1.2.7 is now in the tree, so this should be fixed.