[Python-modules-team] Bug#950040: pysdl2 FTBFS with libsdl2 2.0.10+dfsg1-1
Adrian Bunk
bunk at debian.org
Tue Jan 28 16:39:35 GMT 2020
Source: pysdl2
Version: 0.9.6+dfsg1-1
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pysdl2.html
...
=================================== FAILURES ===================================
_____________________ SDL2ExtFontTest.test_FontManager_add _____________________
self = <sdl2.test.sdl2ext_font_test.SDL2ExtFontTest testMethod=test_FontManager_add>
def test_FontManager_add(self):
fm = sdl2ext.FontManager(RESOURCES.get_path("tuffy.ttf"))
self.assertIn("tuffy", fm.aliases)
self.assertIn("tuffy", fm.fonts)
self.assertIn(16, fm.fonts["tuffy"])
self.assertIsInstance(fm.fonts["tuffy"][16].contents, sdlttf.TTF_Font)
# Do some metrics tests
font = fm.fonts["tuffy"][16]
> self.assertEqual(16, sdlttf.TTF_FontAscent(font))
E AssertionError: 16 != 13
sdl2/test/sdl2ext_font_test.py:107: AssertionError
____________________ SDLSurfaceTest.test_SDL_ConvertSurface ____________________
self = <sdl2.test.surface_test.SDLSurfaceTest testMethod=test_SDL_ConvertSurface>
def test_SDL_ConvertSurface(self):
for idx in pixels.ALL_PIXELFORMATS:
if pixels.SDL_ISPIXELFORMAT_FOURCC(idx):
continue
pfmt = pixels.SDL_AllocFormat(idx)
for fmt in pixels.ALL_PIXELFORMATS:
if pixels.SDL_ISPIXELFORMAT_FOURCC(fmt):
continue
bpp = c_int()
rmask, gmask, bmask, amask = Uint32(), Uint32(), Uint32(), Uint32()
ret = pixels.SDL_PixelFormatEnumToMasks(fmt, byref(bpp),
byref(rmask), byref(gmask),
byref(bmask), byref(amask))
self.assertEqual(ret, SDL_TRUE)
sf = surface.SDL_CreateRGBSurface(0, 10, 20, bpp, rmask, gmask,
bmask, amask)
self.assertIsInstance(sf.contents, surface.SDL_Surface)
csf = surface.SDL_ConvertSurface(sf, pfmt, 0)
> self.assertTrue(csf, error.SDL_GetError())
E AssertionError: <sdl2.surface.LP_SDL_Surface object at 0x7f8ef1eff940> is not true : b'Blit combination not supported'
sdl2/test/surface_test.py:103: AssertionError
_________________ SDLSurfaceTest.test_SDL_ConvertSurfaceFormat _________________
self = <sdl2.test.surface_test.SDLSurfaceTest testMethod=test_SDL_ConvertSurfaceFormat>
def test_SDL_ConvertSurfaceFormat(self):
for pfmt in pixels.ALL_PIXELFORMATS:
if pixels.SDL_ISPIXELFORMAT_FOURCC(pfmt):
continue
for fmt in pixels.ALL_PIXELFORMATS:
if pixels.SDL_ISPIXELFORMAT_FOURCC(fmt):
continue
bpp = c_int()
rmask, gmask, bmask, amask = Uint32(), Uint32(), Uint32(), Uint32()
ret = pixels.SDL_PixelFormatEnumToMasks(fmt, byref(bpp),
byref(rmask), byref(gmask),
byref(bmask), byref(amask))
self.assertEqual(ret, SDL_TRUE)
sf = surface.SDL_CreateRGBSurface(0, 10, 20, bpp, rmask, gmask,
bmask, amask)
self.assertIsInstance(sf.contents, surface.SDL_Surface)
csf = surface.SDL_ConvertSurfaceFormat(sf, pfmt, 0)
> self.assertTrue(csf, error.SDL_GetError())
E AssertionError: <sdl2.surface.LP_SDL_Surface object at 0x7f8ef1ec7ac0> is not true : b'Blit combination not supported'
sdl2/test/surface_test.py:145: AssertionError
=============================== warnings summary ===============================
...
More information about the Python-modules-team
mailing list