[setup.py] Do not use unicode literals
[youtube-dl] / test / test_unicode_literals.py
index 5f88ac2f87393f2adddf2416689fdfb510b056b6..a4ba7bad03b85f7c7e69ded7b435898c7b17e11e 100644 (file)
@@ -7,16 +7,23 @@ import unittest
 
 rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
+IGNORED_FILES = [
+    'setup.py',  # http://bugs.python.org/issue13943
+]
+
 
 class TestUnicodeLiterals(unittest.TestCase):
     def test_all_files(self):
-        print('Skipping this test (not yet fully implemtned)')
+        print('Skipping this test (not yet fully implemented)')
         return
 
         for dirpath, _, filenames in os.walk(rootDir):
             for basename in filenames:
                 if not basename.endswith('.py'):
                     continue
+                if basename in IGNORED_FILES:
+                    continue
+
                 fn = os.path.join(dirpath, basename)
                 with io.open(fn, encoding='utf-8') as inf:
                     code = inf.read()