[Python-modules-commits] r15758 - in packages/python-whoosh/trunk/debian/patches (2 files)
aelmahmoudy-guest at users.alioth.debian.org
aelmahmoudy-guest at users.alioth.debian.org
Fri Feb 18 08:41:47 UTC 2011
Date: Friday, February 18, 2011 @ 08:41:45
Author: aelmahmoudy-guest
Revision: 15758
* Added fix_test_colonspace.diff patch which fixes test_colonspace failure.
Added:
packages/python-whoosh/trunk/debian/patches/fix_test_colonspace.diff
Modified:
packages/python-whoosh/trunk/debian/patches/series
Added: packages/python-whoosh/trunk/debian/patches/fix_test_colonspace.diff
===================================================================
--- packages/python-whoosh/trunk/debian/patches/fix_test_colonspace.diff (rev 0)
+++ packages/python-whoosh/trunk/debian/patches/fix_test_colonspace.diff 2011-02-18 08:41:45 UTC (rev 15758)
@@ -0,0 +1,28 @@
+Description: The "content" field's analyzer was stripping the punctuation
+Origin: https://bitbucket.org/mchaput/whoosh/changeset/728f7f1f3bf3
+Author: Matt Chaput <matt at whoosh.ca>
+Bug: https://bitbucket.org/mchaput/whoosh/issue/109
+
+--- a/tests/test_parsing.py
++++ b/tests/test_parsing.py
+@@ -54,7 +54,6 @@
+
+ def test_colonspace(self):
+ s = fields.Schema(content=fields.TEXT, url=fields.ID)
+-
+ qp = qparser.QueryParser("content", s)
+ q = qp.parse(u"url:test")
+ self.assertEqual(q.__class__, query.Term)
+@@ -75,9 +74,11 @@
+ self.assertEqual(q.fieldname, "content")
+ self.assertEqual(q.text, "url")
+
++ s = fields.Schema(foo=fields.KEYWORD)
++ qp = qparser.QueryParser("foo", s)
+ q = qp.parse(u"blah:")
+ self.assertEqual(q.__class__, query.Term)
+- self.assertEqual(q.fieldname, "content")
++ self.assertEqual(q.fieldname, "foo")
+ self.assertEqual(q.text, "blah:")
+
+ def test_andor(self):
Modified: packages/python-whoosh/trunk/debian/patches/series
===================================================================
--- packages/python-whoosh/trunk/debian/patches/series 2011-02-18 08:41:08 UTC (rev 15757)
+++ packages/python-whoosh/trunk/debian/patches/series 2011-02-18 08:41:45 UTC (rev 15758)
@@ -1 +1,3 @@
shm_check.diff
+fix_methodcaller_import.diff
+fix_test_colonspace.diff
More information about the Python-modules-commits
mailing list