projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHANGELOG and LATEST_VERSION seem to serve no purpose at all. They haven't been chang...
[youtube-dl]
/
test
/
test_unicode_literals.py
diff --git
a/test/test_unicode_literals.py
b/test/test_unicode_literals.py
index 94497054adcd4d2bea98ecd7b9ff6e9ded81085e..a4ba7bad03b85f7c7e69ded7b435898c7b17e11e 100644
(file)
--- a/
test/test_unicode_literals.py
+++ b/
test/test_unicode_literals.py
@@
-7,6
+7,10
@@
import unittest
rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
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):
class TestUnicodeLiterals(unittest.TestCase):
def test_all_files(self):
@@
-17,6
+21,9
@@
class TestUnicodeLiterals(unittest.TestCase):
for basename in filenames:
if not basename.endswith('.py'):
continue
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()
fn = os.path.join(dirpath, basename)
with io.open(fn, encoding='utf-8') as inf:
code = inf.read()