File: Remove-test-setting-hint-with-empty-string-280.patch

package info (click to toggle)
pysdl2 0.9.17%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,600 kB
  • sloc: python: 24,691; makefile: 36; sh: 8
file content (27 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Anonymous Maarten <madebr@users.noreply.github.com>
Date: Thu, 20 Mar 2025 20:55:31 +0100
Subject: Remove test setting hint with empty string (#280)

SDL2 allows a hint with an empty name, SDL3 does not.
Because of this, sdl2-compat has a different behavior.

Since a hint with no name does not make sense, remove the test.

Origin: upstream, 0.9.18, commit:a4fba937913038586cf11685e723359ed86edc52
---
 sdl2/test/hints_test.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sdl2/test/hints_test.py b/sdl2/test/hints_test.py
index 34fae9e..a4b0ed5 100644
--- a/sdl2/test/hints_test.py
+++ b/sdl2/test/hints_test.py
@@ -32,8 +32,6 @@ def test_SDL_SetHint(with_sdl):
     assert sdl2.SDL_GetHint(b"TEST") == b"32"
     assert sdl2.SDL_SetHint(b"TEST", b"abcdef") == 1
     assert sdl2.SDL_GetHint(b"TEST") == b"abcdef"
-    assert sdl2.SDL_SetHint(b"", b"hi") == 1
-    assert sdl2.SDL_GetHint(b"") == b"hi"
 
 def test_SDL_SetHintWithPriority(with_sdl):
     tst_hints = [