Merge pull request #323 from pylast/fix-deprecation-warning

Fix DeprecationWarning: Please use assertRegex instead
This commit is contained in:
Hugo van Kemenade 2020-03-04 22:57:54 +02:00 committed by GitHub
commit 9622fca501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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