aboutsummaryrefslogtreecommitdiff
path: root/test/test_postprocessors.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-11-23 00:43:42 +0700
committerSergey M․ <dstftw@gmail.com>2018-11-23 00:43:42 +0700
commit6864855eb111dbf6e0efe9ed086f48efa1d9f209 (patch)
treee00494a05ba6ee85096b781e618a64093be7b1d2 /test/test_postprocessors.py
parentd861a9d5814408973e0715bb9160fb7db34fbcd0 (diff)
downloadyoutube-dl-6864855eb111dbf6e0efe9ed086f48efa1d9f209.tar.xz
[tests] Fix invalid escape sequences
Diffstat (limited to 'test/test_postprocessors.py')
-rw-r--r--test/test_postprocessors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_postprocessors.py b/test/test_postprocessors.py
index addb69d6f..4209d1d9a 100644
--- a/test/test_postprocessors.py
+++ b/test/test_postprocessors.py
@@ -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')
- self.assertEqual(pp._titleregex, '(?P<title>.+)\ \-\ (?P<artist>.+)')
+ self.assertEqual(pp._titleregex, r'(?P<title>.+)\ \-\ (?P<artist>.+)')