tests: Update audio test to recognize missing sounds as NullAudioSound

This commit is contained in:
Sam Edwards 2018-02-20 00:55:13 -07:00
parent 50b3b87ad5
commit 7aedc21510

View File

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