]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - test/test_postprocessors.py
New upstream version 2019.06.08
[youtubedl] / test / test_postprocessors.py
index addb69d6fa205f00f50a9a733d40d4a2ea928155..4209d1d9a0cefa96fc5ea9d26229f6ac44116996 100644 (file)
@@ -14,4 +14,4 @@ from youtube_dl.postprocessor import MetadataFromTitlePP
 class TestMetadataFromTitle(unittest.TestCase):
     def test_format_to_regex(self):
         pp = MetadataFromTitlePP(None, '%(title)s - %(artist)s')
 class TestMetadataFromTitle(unittest.TestCase):
     def test_format_to_regex(self):
         pp = MetadataFromTitlePP(None, '%(title)s - %(artist)s')
-        self.assertEqual(pp._titleregex, '(?P<title>.+)\ \-\ (?P<artist>.+)')
+        self.assertEqual(pp._titleregex, r'(?P<title>.+)\ \-\ (?P<artist>.+)')