summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2014-05-25 05:36:03 +0700
committerSergey M. <dstftw@gmail.com>2014-05-25 05:36:03 +0700
commit9eeb7abc6b1ff38b7c29d790ced62fb3411f0143 (patch)
treeb0619796bcfe847a50959f74a4ea587007418d81
parentc70df21099ee9031b360af76e010d0eeed7cc795 (diff)
parent1c783bca8853160b66990148cf39ba57d73533da (diff)
downloadyoutube-dl-9eeb7abc6b1ff38b7c29d790ced62fb3411f0143.tar.gz
youtube-dl-9eeb7abc6b1ff38b7c29d790ced62fb3411f0143.tar.xz
youtube-dl-9eeb7abc6b1ff38b7c29d790ced62fb3411f0143.zip
Merge pull request #2960 from codesparkle/fix-test-format-note-regex
[test] fixed typo in test_format_note (test_YoutubeDL)
-rw-r--r--test/test_YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 8735013f7..e794cc97f 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -67,7 +67,7 @@ class TestFormatSelection(unittest.TestCase):
         downloaded = ydl.downloaded_info_dicts[0]
         self.assertEqual(downloaded['ext'], 'mp4')
 
-        # No prefer_free_formats => prefer mp4 and flv for greater compatibilty
+        # No prefer_free_formats => prefer mp4 and flv for greater compatibility
         ydl = YDL()
         ydl.params['prefer_free_formats'] = False
         formats = [
@@ -279,7 +279,7 @@ class TestFormatSelection(unittest.TestCase):
         self.assertEqual(ydl._format_note({}), '')
         assertRegexpMatches(self, ydl._format_note({
             'vbr': 10,
-        }), '^x\s*10k$')
+        }), '^\s*10k$')
 
 if __name__ == '__main__':
     unittest.main()