Issue #58 resolved

test_simplify fails

created an issue


test_simplify fails in Whoosh 1.1.1, giving the following error:


FAIL: test_simplify (tests.test_queries.TestQueries)

Traceback (most recent call last): File "/home/ant1/Projects/deb/python-whoosh/tests/", line 71, in test_simplify self.assertEqual(q1.simplify(r), q2) AssertionError: And([Or([Term('v', u'brie', boost=2.0), Term('v', u'bear', boost=2.0), Term('v', u'bee', boost=2.0)]), Term('v', 'juliet')]) != And([Or([Term('v', u'bear', boost=2.0), Term('v', u'bee', boost=2.0), Term('v', u'brie', boost=2.0)]), Term('v', 'juliet')])


I made a simple patch, that fixed this failure. I am not sure if that is correct, please check it.

Comments (6)

  1. Matt Chaput repo owner

    Hi, this was already fixed in the repo but I was waiting to push a new release until the new numeric range features were done. Whoosh 1.2 should work.

  2. Log in to comment