From 7aedc2151035174632a7f3e55be7563f71e65117 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 20 Feb 2018 00:55:13 -0700 Subject: [PATCH] tests: Update audio test to recognize missing sounds as NullAudioSound --- tests/audio/test_loading.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/audio/test_loading.py b/tests/audio/test_loading.py index ddbec1a1da..ea3bdb2cd9 100644 --- a/tests/audio/test_loading.py +++ b/tests/audio/test_loading.py @@ -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')