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
======================================================================
ERROR: test_unicode (test_types_values.ConstantsTest)
unicode conversion test from unittest in clang
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/trolldbois/ctypeslib/test/test_types_values.py", line 83, in test_unicode
self.gen('test/data/test-strings.cpp', ['-x', 'c++'])
File "/home/travis/build/trolldbois/ctypeslib/test/util.py", line 141, in gen
gen = self._gen(ofi, fname, flags)
File "/home/travis/build/trolldbois/ctypeslib/test/util.py", line 129, in _gen
self.parser.parse(fname)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 120, in parse
self.startElement(node)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 159, in startElement
stop_recurse = self.parse_cursor(node)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 273, in parse_cursor
return self.cursorkind_handler.parse_cursor(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 37, in parse_cursor
return mth(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/util.py", line 119, in fn
return func(*args, **kwargs)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 249, in VAR_DECL
init_value = self._VAR_DECL_value(cursor, _type)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 299, in _VAR_DECL_value
list(cursor.get_children()))
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 352, in _get_var_decl_init_value
_tmp = self._get_var_decl_init_value_single(_ctype, child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 385, in _get_var_decl_init_value_single
child.get_children())
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 352, in _get_var_decl_init_value
_tmp = self._get_var_decl_init_value_single(_ctype, child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 394, in _get_var_decl_init_value_single
_v = self.parse_cursor(child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 37, in parse_cursor
return mth(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/util.py", line 119, in fn
return func(*args, **kwargs)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 463, in _literal_handling
str([str(t.spelling) for t in tokens]))
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 463, in <listcomp>
str([str(t.spelling) for t in tokens]))
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 3173, in spelling
return conf.lib.clang_getTokenSpelling(self._tu, self)
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 212, in from_result
return conf.lib.clang_getCString(res)
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 101, in to_python_string
return x.value
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 89, in value
return super(c_char_p, self).value.decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 1: invalid start byte
======================================================================
ERROR: test_unicode_cpp11 (test_types_values.ConstantsTest)
unicode conversion test from unittest in clang
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/trolldbois/ctypeslib/test/test_types_values.py", line 103, in test_unicode_cpp11
self.gen('test/data/test-strings.cpp', ['-x', 'c++', '--std=c++11'])
File "/home/travis/build/trolldbois/ctypeslib/test/util.py", line 141, in gen
gen = self._gen(ofi, fname, flags)
File "/home/travis/build/trolldbois/ctypeslib/test/util.py", line 129, in _gen
self.parser.parse(fname)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 120, in parse
self.startElement(node)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 159, in startElement
stop_recurse = self.parse_cursor(node)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/clangparser.py", line 273, in parse_cursor
return self.cursorkind_handler.parse_cursor(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 37, in parse_cursor
return mth(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/util.py", line 119, in fn
return func(*args, **kwargs)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 249, in VAR_DECL
init_value = self._VAR_DECL_value(cursor, _type)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 299, in _VAR_DECL_value
list(cursor.get_children()))
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 352, in _get_var_decl_init_value
_tmp = self._get_var_decl_init_value_single(_ctype, child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 385, in _get_var_decl_init_value_single
child.get_children())
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 352, in _get_var_decl_init_value
_tmp = self._get_var_decl_init_value_single(_ctype, child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 394, in _get_var_decl_init_value_single
_v = self.parse_cursor(child)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 37, in parse_cursor
return mth(cursor)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/util.py", line 119, in fn
return func(*args, **kwargs)
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 463, in _literal_handling
str([str(t.spelling) for t in tokens]))
File "/home/travis/build/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py", line 463, in <listcomp>
str([str(t.spelling) for t in tokens]))
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 3173, in spelling
return conf.lib.clang_getTokenSpelling(self._tu, self)
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 212, in from_result
return conf.lib.clang_getCString(res)
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 101, in to_python_string
return x.value
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/clang/cindex.py", line 89, in value
return super(c_char_p, self).value.decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 1: invalid start byte
======================================================================
FAIL: test_variable (test_clang2py.ArgumentTypeKind)
run clang2py -k d test/data/test-strings.cpp
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/trolldbois/ctypeslib/test/test_clang2py.py", line 109, in test_variable
self.assertEqual(p.returncode, 0)
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 81 tests in 4.496s
FAILED (failures=1, errors=2, skipped=4, expected failures=5)
Test failed: <unittest.runner.TextTestResult run=81 errors=2 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=81 errors=2 failures=1>
The command "python setup.py test" exited with 1.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: