瀏覽代碼

tests: Update audio test to recognize missing sounds as NullAudioSound

Sam Edwards 7 年之前
父節點
當前提交
7aedc21510
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      tests/audio/test_loading.py

+ 1 - 2
tests/audio/test_loading.py

@@ -1,6 +1,5 @@
 import pytest
 
[email protected]
 def test_missing_file(audiomgr):
     sound = audiomgr.get_sound('/not/a/valid/file.ogg')
-    assert sound is None
+    assert str(sound).startswith('NullAudioSound')