[reportlab-users] unit tests in the CVS

Jerome Alet reportlab-users@reportlab.com
Mon, 7 Oct 2002 14:04:55 +0200


On Mon, Oct 07, 2002 at 01:46:03PM +0200, Jerome Alet wrote:
> On Mon, Oct 07, 2002 at 01:34:37PM +0200, Marius Gedminas wrote:
> > 
> > Is Python 1.5.2 / 2.1 compatibility still a goal of ReportLab?  Current
> > CVS version passes all 104 tests with Python 2.2 here, but fails with
> > 1.5 (pdfgen/pycanvas.py uses +=).  It also fails 4 tests (in
> > test_docstrings.py and test_pdfgen_pycanvas.py) with Python 2.1.
> 
> PS : I'll try to make a patch to pycanvas RSN.

More difficult than I first thought.

With 2.1 it breaks at line 569 in pdfmetrics.py , the KeyError 
exception is re-raised (font really not found), and it works like a 
charm in 2.2 

in 2.2 faceName is always a string of text (the font name), while
in 2.1 it breaks when faceName is a pycanvas.Action instance
but I don't know why it is such an instance.

(all this seen with a print)

Any idea ?

PS: of course the += thing is trivial, but these are two different
    problems.
    
Jerome Alet