[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame2 test failure



On, Sat Jun 27, 2009, Evan Kroske wrote:

> I just upgraded to the Pygame2 alpha 2 release, so I ran the tests to see if
> I had installed it properly. All the tests succeeded except for the Freetype
> font test. Here's the message it gave me:
> 
> > FAIL: test_pygame2_freetype_Font_get_metrics (__main__.FreeTypeFontTest)
> 
> ----------------------------------------------------------------------
> 
> Traceback (most recent call last):
> 
>   File "freetype_font_test.py", line 110, in
> > test_pygame2_freetype_Font_get_metrics
> 
>     self.assertEqual(f.get_metrics('ABCDabcd', ptsize=ptsize), test_data)
> 
> AssertionError: [None, None, None, None, None, None, None, None] != [(0, 12,
> > 0, 16, 12), (1, 11, 0, 15, 12), (0, 12, 0, 15, 12), (1, 12, 0, 15, 12), (1,
> > 11, 0, 11, 12), (1, 11, 0, 16, 12), (1, 11, 0, 11, 12), (1, 11, 0, 16, 12)]
[...]

Looks like your freetype has some problems with fixed opentype fonts. I
cannot recreate that behaviour on other systems, but maybe Vicent
know, what could be wrong here.

> I tried to get a stack trace, but GDB told me that there was no stack. I'm
> running Ubuntu Intrepid Ibex 64 bit with Python 2.5.

Because it was not a crash, but a simple test failure (like some
True == False check).

Regards
Marcus

Attachment: pgpvFdYxsW3Cg.pgp
Description: PGP signature