pygccxml icon indicating copy to clipboard operation
pygccxml copied to clipboard

Test 'test_smart_pointer.py' fails with GCC-15.0.0

Open dl1jbe opened this issue 1 year ago • 0 comments

Running tests for pygccxml-2.5.0 test_smart_pointer_value_type fails with the following output:

________________________________ Test.test_smart_pointer_value_type _________________________________

self = <unittests.test_smart_pointer.Test testMethod=test_smart_pointer_value_type>

    def test_smart_pointer_value_type(self):
        """
        Test smart_pointer_traits.value_type method.
    
        """
    
        if self.config.xml_generator == "gccxml":
            return
    
        criteria = declarations.declaration_matcher(name="yes1")
        decls = declarations.matcher.find(criteria, self.global_ns)
        vt = declarations.smart_pointer_traits.value_type(decls[0].decl_type)

       self.assertIsInstance(vt, declarations.int_t)
E       AssertionError: <pygccxml.declarations.cpptypes.unknown_t object at 0x7f3cfcb86d50> is not an instance of <class 'pygccxml.declarations.cpptypes.int_t'>

See also https://bugs.gentoo.org/940578

dl1jbe avatar Oct 26 '24 12:10 dl1jbe