levenshtein_distance is a float. Fix test. Sorry for the noise, I currently can't run the tests on my local machine.

This commit is contained in:
Timo Stollenwerk 2013-07-10 08:36:51 +02:00
parent ea13b04e8e
commit c0f4b82f1b
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class SolrConfigXMLAdapter(XMLAdapterBase):
value.append(elem.getAttribute('name'))
self.context.field_list = tuple(map(str, value))
elif child.nodeName == 'levenshtein_distance':
value = int(str(child.getAttribute('value')))
value = float(str(child.getAttribute('value')))
self.context.levenshtein_distance = value
def _createNode(self, name, value):

View File

@ -33,6 +33,6 @@
value="]" />
<highlight_fragsize
value="100" />
<levenshtein_distance value="0" />
<levenshtein_distance value="0.0" />
</settings>
</object>