Unit test failures in Python2.7

Bug #882315 reported by Claudio Freire
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyBindGen
Fix Released
Undecided
Unassigned

Bug Description

Trying to package pybindgen for ubuntu, got unit tests failures.

Testing it in debian wheeze, with python 2.7, seems to suggest it's related to python 2.7.

Attached is a log of ./waf check

Tags: gccxml

Related branches

Revision history for this message
Claudio Freire (claudio-daniel-freire) wrote :
Revision history for this message
Gustavo Carneiro (gjc) wrote :

This seems to due to incorrect gccxml API scanning, since the manually written module generation script generates a module that passes all 110 tests. I'll have to investigate...

Gustavo Carneiro (gjc)
Changed in pybindgen:
status: New → Confirmed
tags: added: gccxml
Revision history for this message
Claudio Freire (claudio-daniel-freire) wrote :

It doesn't blow if I configure with --disable-pygccxml
Does that mean it's a bug in pygccxml, or in how pybindgen uses it?

Revision history for this message
Gustavo Carneiro (gjc) wrote :

Damn it, scanned:

    cls.add_method('get_len',
                   'std::size_t',
                   [],
                   is_const=True, custom_name='__len__')

manually written:

    VectorLike.add_method('get_len', 'size_t', [], custom_name='__len__')

pybindgen doesn't know std::size_t, only size_t. I just need to add an alias std::size_t = size_t to pybindgen type handlers. Trivial fix.

Changed in pybindgen:
status: Confirmed → Fix Committed
Gustavo Carneiro (gjc)
Changed in pybindgen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.