1. Marcus von Appen
  2. py-sdl2
  3. Issues
Issue #30 resolved

test_SDL_AddDelHintCallback fails with PyPy 2.2.1+dfsg-1 (amd64)

Anonymous created an issue

I get following error when running the tests with PyPy from Debian sid:

----------------------------------------------------------------------
FAILURE: test_SDL_AddDelHintCallback (sdl2.test.hints_test.SDLHintsTest)
======================================================================
Traceback (most recent call last):
  File "/home/pau/py-sdl2/sdl2/test/util/../hints_test.py", line 86, in test_SDL_AddDelHintCallback
    self.assertEqual(len(calls), 2)
AssertionError: 3 != 2

Comments (4)

  1. Anonymous

    Here a smaller testscript based on the script. Output of python3:

    [(b'banana', b'SDL_ALLOW_TOPMOST', None, None),
     (b'banana', b'SDL_ALLOW_TOPMOST', None, b'true')]
    [(b'banana', b'SDL_ALLOW_TOPMOST', None, None),
     (b'banana', b'SDL_ALLOW_TOPMOST', None, b'true')]
    [(b'banana', b'SDL_ALLOW_TOPMOST', None, None),
     (b'banana', b'SDL_ALLOW_TOPMOST', None, b'true')]
    

    Output of pypy

    [('banana', 'SDL_ALLOW_TOPMOST', None, None),
     ('banana', 'SDL_ALLOW_TOPMOST', None, 'true')]
    [('banana', 'SDL_ALLOW_TOPMOST', None, None),
     ('banana', 'SDL_ALLOW_TOPMOST', None, 'true')]
    [('banana', 'SDL_ALLOW_TOPMOST', None, None),
     ('banana', 'SDL_ALLOW_TOPMOST', None, 'true'),
     ('banana', 'SDL_ALLOW_TOPMOST', 'true', 'false')]
    
  2. Log in to comment