[test_YoutubeDL] Fix invalid escape sequences
authorSergey M․ <dstftw@gmail.com>
Wed, 15 Feb 2017 16:20:46 +0000 (23:20 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 15 Feb 2017 16:20:46 +0000 (23:20 +0700)
test/test_YoutubeDL.py

index d07c35be88af776321680f4ece53374ec1f26c49..2cfcf743a5f6d878187eee741242807661525d4c 100644 (file)
@@ -541,10 +541,10 @@ class TestYoutubeDL(unittest.TestCase):
         self.assertEqual(ydl._format_note({}), '')
         assertRegexpMatches(self, ydl._format_note({
             'vbr': 10,
-        }), '^\s*10k$')
+        }), r'^\s*10k$')
         assertRegexpMatches(self, ydl._format_note({
             'fps': 30,
-        }), '^30fps$')
+        }), r'^30fps$')
 
     def test_postprocessors(self):
         filename = 'post-processor-testfile.mp4'