Skip to content

Commit 7b66f97

Browse files
authored
Merge pull request #281 from cgutman/flush_events
Fix test_get_events failure with sdl2-compat
2 parents a4fba93 + 28ce2c8 commit 7b66f97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdl2/test/sdl2ext_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sdl2
44
from sdl2 import ext as sdl2ext
55
from sdl2 import (
6-
SDL_Quit, SDL_WasInit, SDL_FlushEvent, SDL_UserEvent, SDL_PushEvent,
6+
SDL_Quit, SDL_WasInit, SDL_FlushEvents, SDL_UserEvent, SDL_PushEvent,
77
SDL_Event, SDL_USEREVENT, SDL_FIRSTEVENT, SDL_LASTEVENT, SDL_QUIT,
88
)
99

@@ -58,7 +58,7 @@ def test_init_quit():
5858
sdl2ext.quit()
5959

6060
def test_get_events(with_sdl_ext):
61-
SDL_FlushEvent(SDL_FIRSTEVENT, SDL_LASTEVENT)
61+
SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT)
6262
for x in range(12):
6363
event = SDL_Event()
6464
event.type = SDL_USEREVENT + x

0 commit comments

Comments
 (0)