You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In adding unit tests back to the CI for the PySDL2 conda feedstock, I noticed some unexpected test failures for the Windows binaries. Specifically, all the tests related to XCF or SVG identification/import failed despite working fine with the Linux/macOS runners:
______________________ TestSDLImage.test_IMG_LoadSVG_RW _______________________
self = <sdl2.test.sdlimage_test.TestSDLImage object at 0x000002589C77CD60>
@pytest.mark.skipif(sdlimage.dll.version < 2002, reason="Added in 2.0.2")
def test_IMG_LoadSVG_RW(self):
fp = open(_get_image_path("svg"), "rb")
sf = sdlimage.IMG_LoadSVG_RW(rwops.rw_from_object(fp))
fp.close()
> assert isinstance(sf.contents, surface.SDL_Surface)
E ValueError: NULL pointer access
fp = <_io.BufferedReader name='D:\\bld\\pysdl2_1642551982139\\_test_env\\lib\\site-packages\\sdl2\\test\\resources\\surfacetest.svg'>
self = <sdl2.test.sdlimage_test.TestSDLImage object at 0x000002589C77CD60>
sf = <sdl2.surface.LP_SDL_Surface object at 0x000002589CBEE8C0>
..\_test_env\lib\site-packages\sdl2\test\sdlimage_test.py:261: ValueError
______________________ TestSDLImage.test_IMG_LoadXCF_RW _______________________
self = <sdl2.test.sdlimage_test.TestSDLImage object at 0x000002589D202850>
@pytest.mark.xfail(is32bit or ismacos, reason="XCF currently broken on 32-bit and macOS")
def test_IMG_LoadXCF_RW(self):
fp = open(_get_image_path("xcf"), "rb")
sf = sdlimage.IMG_LoadXCF_RW(rwops.rw_from_object(fp))
fp.close()
> assert isinstance(sf.contents, surface.SDL_Surface)
E ValueError: NULL pointer access
self = <sdl2.test.sdlimage_test.TestSDLImage object at 0x000002589D202850>
sf = <sdl2.surface.LP_SDL_Surface object at 0x000002589CBF80C0>
..\_test_env\lib\site-packages\sdl2\test\sdlimage_test.py:291: ValueError
Looking at the build setup here, it looks like this is because the XCF and SVG formats were never added to this section of the CMake build file:
Thanks @a-hurst. I haven't touched this recipe for a while. I will try your suggestion right away (and add you as someone with maintainer access to this repo too?)
Issue:
In adding unit tests back to the CI for the PySDL2 conda feedstock, I noticed some unexpected test failures for the Windows binaries. Specifically, all the tests related to XCF or SVG identification/import failed despite working fine with the Linux/macOS runners:
Looking at the build setup here, it looks like this is because the XCF and SVG formats were never added to this section of the CMake build file:
sdl2_image-feedstock/recipe/CMakeLists.txt
Lines 50 to 57 in d4d283e
Neither format has any external dependencies, so adding:
to the file should fix it!
Cheers,
Austin
The text was updated successfully, but these errors were encountered: