Only run test_love on a single Python version to avoid collisions

This commit is contained in:
Hugo 2019-02-03 12:51:44 +02:00
parent d4fe9e5b36
commit 4eec2e763d
3 changed files with 9 additions and 7 deletions

View file

@ -6,10 +6,11 @@ import unittest
import pylast
from .test_pylast import TestPyLastWithLastFm
from .test_pylast import PY37, TestPyLastWithLastFm
class TestPyLastTrack(TestPyLastWithLastFm):
@unittest.skipUnless(PY37, "Only run on Python 3.7 to avoid collisions")
def test_love(self):
# Arrange
artist = "Test Artist"