From f806a1f36af895663fefaf4b43c4a9c96c07660b Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 4 Mar 2020 22:33:22 +0200 Subject: [PATCH] Fix DeprecationWarning: Please use assertRegex instead --- tests/test_user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_user.py b/tests/test_user.py index 4d8ac83..e371529 100755 --- a/tests/test_user.py +++ b/tests/test_user.py @@ -277,9 +277,7 @@ class TestPyLastUser(TestPyLastWithLastFm): top_album = albums[0].item self.assertTrue(len(top_album.info["image"])) - self.assertRegexpMatches( - top_album.info["image"][pylast.SIZE_LARGE], r"^http.+$" - ) + self.assertRegex(top_album.info["image"][pylast.SIZE_LARGE], r"^http.+$") def test_user_tagged_artists(self): # Arrange