Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One of tests fails #1

Closed
GoogleCodeExporter opened this issue Feb 21, 2016 · 2 comments
Closed

One of tests fails #1

GoogleCodeExporter opened this issue Feb 21, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Patch attached.

Original comment by mryan1539 on 9 Mar 2010 at 4:13

Attachments:

@GoogleCodeExporter
Copy link
Author

Patch applied.  Thank you!

Original comment by damien.neil on 9 Mar 2010 at 5:17

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant