From ea3307494111c34afe1945c99ef4532802f50c2a Mon Sep 17 00:00:00 2001 From: hugovk Date: Sat, 23 Apr 2016 15:28:07 +0300 Subject: [PATCH] Skip test if Last.fm API still broken --- tests/test_pylast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_pylast.py b/tests/test_pylast.py index 620e6ba..8e68127 100755 --- a/tests/test_pylast.py +++ b/tests/test_pylast.py @@ -1936,6 +1936,8 @@ class TestPyLast(unittest.TestCase): similar = tag.get_similar() # Assert + if len(similar) == 0: + pytest.skip("Last.fm API is broken.") found = False for tag in similar: if tag.name == "delta blues":