You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 2.6, py-dom-xpath from trunk
ERROR: test_string_number_nan (__main__.TestStringFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "functions.py", line 127, in test_string_number_nan
result = xpath.find('string(0 div 0)', self.doc)
File "/home/user/.local/lib/python2.6/site-packages/xpath/__init__.py",
line 21, in api_function
return f(*args, **kwargs)
File "/home/user/.local/lib/python2.6/site-packages/xpath/__init__.py",
line 150, in find
return XPath.get(expr).find(node, **kwargs)
File "/home/user/.local/lib/python2.6/site-packages/xpath/__init__.py",
line 21, in api_function
return f(*args, **kwargs)
File "/home/user/.local/lib/python2.6/site-packages/xpath/__init__.py",
line 113, in find
return self.expr.evaluate(node, 1, 1, context)
File "/home/user/.local/lib/python2.6/site-packages/xpath/expr.py", line
729, in evaluate
result = self.steps[0].evaluate(node, pos, size, context)
File "/home/user/.local/lib/python2.6/site-packages/xpath/expr.py", line
368, in new_f
args = [convert(x) for x in args]
File "/home/user/.local/lib/python2.6/site-packages/xpath/expr.py", line
104, in string
elif int(v) == v and v <= 0xffffffff:
ValueError: cannot convert float NaN to integer
----------------------------------------------------------------------
Ran 77 tests in 0.118s
FAILED (errors=1)
Original issue reported on code.google.com by Genotip7 on 3 Mar 2010 at 11:02
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
Genotip7
on 3 Mar 2010 at 11:02The text was updated successfully, but these errors were encountered: