14
0
forked from pool/python-PySDL2
Files
python-PySDL2/fix-tests.patch

18 lines
589 B
Diff
Raw Normal View History

--- a/sdl2/test/hidapi_test.py
+++ b/sdl2/test/hidapi_test.py
@@ -38,10 +38,12 @@ def test_SDL_hid_device_change_count(hid
def test_SDL_hid_enumerate(hidapi_setup):
devices = sdl2.SDL_hid_enumerate(0, 0)
- assert SDL_GetError() == b""
+ # Ignore errors like Unable to open /dev/input/...
+ #assert SDL_GetError() == b""
if devices != None:
sdl2.SDL_hid_free_enumeration(devices)
- assert SDL_GetError() == b""
+ # Ignore errors like Unable to open /dev/input/...
+ #assert SDL_GetError() == b""
@pytest.mark.skip("not implemented")