Skip test if Last.fm API still broken

This commit is contained in:
hugovk 2016-04-23 15:28:07 +03:00
parent 4c8d2e2a9b
commit ea33074941

View file

@ -1936,6 +1936,8 @@ class TestPyLast(unittest.TestCase):
similar = tag.get_similar() similar = tag.get_similar()
# Assert # Assert
if len(similar) == 0:
pytest.skip("Last.fm API is broken.")
found = False found = False
for tag in similar: for tag in similar:
if tag.name == "delta blues": if tag.name == "delta blues":