[albatross-users] Build failure with python 2.3: test failure

Fabian Fagerholm fabbe at paniq.net
Thu Nov 6 23:27:07 EST 2003


Hi!

I'm progressing on my Debian packaging of Albatross. Apart from the
unsolved issue of documentation generation previously discussed on this
list and in private mail, I have one remaining issue before the package
is fit for introduction in Debian unstable (not counting issues not yet
discovered, of course):

The test suite fails 10 of 61 tests when running with python 2.3.
The relevant part of the build log is attached.


The first class of errors is clear: the test expects the boolean values
true and false to be represented as 1 and 0, respectively, but the
python 2.3 interpreter outputs them as "True" and "False". This is
because python 2.3 introduced a boolean type, whereas earlier versions
relied on the C-style convention of using integers for boolean
operations.

Related documentation:
http://www.python.org/doc/2.3/whatsnew/section-bool.html
http://www.python.org/2.3.2/NEWS.html


The other class of errors seems to be related to hashing or object
pickling; the test expects a certain character sequence as "value"
attribute in the hidden tag named "__albform__", but the python 2.2
interpreter in Debian sid produces a different, and slightly longer
sequence.

Related documentation:
http://www.python.org/doc/2.3/whatsnew/section-pep305.html
http://www.python.org/2.3.2/NEWS.html


I might drop building for python2.3 in the first version of the package,
but on the other hand, it would make sense to fix it right from the
start.

Perhaps the test could be made more dynamic by generating the expected
results with the python interpreter before running the actual tests? I
assume that a prerequisite for the tests is a working python
interpreter?

Opinions, suggestions?

-- 
Fabian Fagerholm <fabbe at paniq.net>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: build.log
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20031106/fb796007/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20031106/fb796007/attachment.pgp>


More information about the Albatross-users mailing list