]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[tests] Remove useless u prefixes
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 26 Nov 2014 12:07:32 +0000 (13:07 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 26 Nov 2014 12:07:32 +0000 (13:07 +0100)
test/test_download.py
test/test_utils.py

index b2615f338cf228b1165c4c131e27f70b7ab018c3..a009aa475442ae588405a99f432af6feade92836 100644 (file)
@@ -97,7 +97,7 @@ def generator(test_case):
             return
         for other_ie in other_ies:
             if not other_ie.working():
-                print_skipping(u'test depends on %sIE, marked as not WORKING' % other_ie.ie_key())
+                print_skipping('test depends on %sIE, marked as not WORKING' % other_ie.ie_key())
                 return
 
         params = get_params(test_case.get('params', {}))
@@ -143,7 +143,7 @@ def generator(test_case):
                         raise
 
                     if try_num == RETRIES:
-                        report_warning(u'Failed due to network errors, skipping...')
+                        report_warning('Failed due to network errors, skipping...')
                         return
 
                     print('Retrying: {0} failed tries\n\n##########\n\n'.format(try_num))
index 9dc879e0def6c3a551dcd3250860834664b8dccf..baa3a215657026245bf93960c53374bc3abdd61b 100644 (file)
@@ -171,7 +171,7 @@ class TestUtil(unittest.TestCase):
         self.assertEqual(find('media:song/url').text, 'http://server.com/download.mp3')
 
     def test_smuggle_url(self):
-        data = {u"ö": u"ö", u"abc": [3]}
+        data = {"ö": "ö", "abc": [3]}
         url = 'https://foo.bar/baz?x=y#a'
         smug_url = smuggle_url(url, data)
         unsmug_url, unsmug_data = unsmuggle_url(smug_url)