@@ -40,8 +40,10 @@ def test_load_flac(self):
40
40
"|tags:music|"
41
41
self .music_load ("house_lo.flac" )
42
42
43
+ # system installed SDL_mixer may not support wavpack
43
44
@unittest .skipIf (
44
- pygame .mixer .get_sdl_mixer_version () < (2 , 8 , 0 ),
45
+ pygame .mixer .get_sdl_mixer_version () < (2 , 8 , 0 )
46
+ or "PG_DEPS_FROM_SYSTEM" in os .environ ,
45
47
"WavPack support added in SDL_mixer 2.8.0" ,
46
48
)
47
49
def test_load_wv (self ):
@@ -85,7 +87,10 @@ def test_load_object(self):
85
87
if pygame .mixer .get_sdl_mixer_version () >= (2 , 6 , 0 ):
86
88
filenames .append ("house_lo.mp3" )
87
89
88
- if pygame .mixer .get_sdl_mixer_version () >= (2 , 8 , 0 ):
90
+ if (
91
+ pygame .mixer .get_sdl_mixer_version () >= (2 , 8 , 0 )
92
+ and "PG_DEPS_FROM_SYSTEM" not in os .environ
93
+ ):
89
94
filenames .append ("house_lo.wv" )
90
95
91
96
if pygame .mixer .get_soundfont () is not None :
@@ -113,7 +118,10 @@ def test_object_namehint(self):
113
118
if pygame .mixer .get_sdl_mixer_version () >= (2 , 6 , 0 ):
114
119
filenames .append ("house_lo.mp3" )
115
120
116
- if pygame .mixer .get_sdl_mixer_version () >= (2 , 8 , 0 ):
121
+ if (
122
+ pygame .mixer .get_sdl_mixer_version () >= (2 , 8 , 0 )
123
+ and "PG_DEPS_FROM_SYSTEM" not in os .environ
124
+ ):
117
125
filenames .append ("house_lo.wv" )
118
126
119
127
if pygame .mixer .get_soundfont () is not None :
@@ -208,8 +216,10 @@ def test_queue_flac(self):
208
216
filename = example_path (os .path .join ("data" , "house_lo.flac" ))
209
217
pygame .mixer .music .queue (filename )
210
218
219
+ # system installed SDL_mixer may not support wavpack
211
220
@unittest .skipIf (
212
- pygame .mixer .get_sdl_mixer_version () < (2 , 8 , 0 ),
221
+ pygame .mixer .get_sdl_mixer_version () < (2 , 8 , 0 )
222
+ or "PG_DEPS_FROM_SYSTEM" in os .environ ,
213
223
"WavPack support added in SDL_mixer 2.8.0" ,
214
224
)
215
225
def test_queue_wv (self ):
0 commit comments