Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Jan 28, 2025
1 parent 5483ca4 commit 06f1453
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/TEST_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ def TEST_SDL_Init() -> None:

@TEST_RegisterFunction(["Linux", "Darwin", "Windows"])
def TEST_SDL_InitSubSystem() -> None:
assert sdl3.SDL_Init(sdl3.SDL_INIT_AUDIO), sdl3.SDL_GetError().decode()
assert sdl3.SDL_Init(0), sdl3.SDL_GetError().decode()
assert sdl3.SDL_InitSubSystem(sdl3.SDL_INIT_EVENTS), sdl3.SDL_GetError().decode()
assert (error := sdl3.SDL_GetError()) == "".encode(), error.decode()
assert sdl3.SDL_WasInit(0) & sdl3.SDL_INIT_EVENTS, "Failed to initialize subsystem."
assert sdl3.SDL_WasInit(0) & sdl3.SDL_INIT_AUDIO, "Failed to initialize subsystem."
sdl3.SDL_QuitSubSystem(sdl3.SDL_INIT_EVENTS)
sdl3.SDL_Quit()

Expand Down

0 comments on commit 06f1453

Please sign in to comment.