Comment 27 for bug 707075

Revision history for this message
Robert Collins (lifeless) wrote :

I've been using 2.2.4 from proposed, and bzr-search has its test suite fail:

======================================================================
ERROR: bzrlib.plugins.search.tests.test_index.TestGraphIndexSuggestions.test_key_length_2_no_hits(BTree)
----------------------------------------------------------------------
_StringException: Text attachment: log
------------
5.902 opening working tree '/tmp/testbzr-z0SX5I.tmp'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 507, in _run_test_method
    return self._get_test_method()()
  File "/home/robertc/.bazaar/plugins/search/tests/test_index.py", line 703, in test_key_length_2_no_hits
    list(query_index.iter_entries_starts_with(('pref', 'pref'))))
  File "/home/robertc/.bazaar/plugins/search/index.py", line 1450, in iter_entries_starts_with
    items = sorted(node.items())
AttributeError: '_LeafNode' object has no attribute 'items'
------------

I don't know if this is a regression in the SRU or not.