From cfb81348723a44310d3f0c0fd8585bb65ba46792 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 2 Feb 2019 14:15:31 +0200 Subject: [PATCH] Only run test_scrobble on a single Python version to avoid collisions --- tests/test_network.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_network.py b/tests/test_network.py index 3ce4951..ebe90ea 100755 --- a/tests/test_network.py +++ b/tests/test_network.py @@ -2,6 +2,7 @@ """ Integration (not unit) tests for pylast.py """ +import sys import time import unittest @@ -11,6 +12,9 @@ from .test_pylast import TestPyLastWithLastFm class TestPyLastNetwork(TestPyLastWithLastFm): + @unittest.skipUnless( + sys.version_info[:2] == (3, 7), "Only run on Python 3.7 to avoid collisions" + ) def test_scrobble(self): # Arrange artist = "test artist"