projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'lenaten-ynet'
[youtube-dl]
/
test
/
test_unicode_literals.py
diff --git
a/test/test_unicode_literals.py
b/test/test_unicode_literals.py
index 5f88ac2f87393f2adddf2416689fdfb510b056b6..a4ba7bad03b85f7c7e69ded7b435898c7b17e11e 100644
(file)
--- a/
test/test_unicode_literals.py
+++ b/
test/test_unicode_literals.py
@@
-7,16
+7,23
@@
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):
- print('Skipping this test (not yet fully implem
tn
ed)')
+ print('Skipping this test (not yet fully implem
ent
ed)')
return
for dirpath, _, filenames in os.walk(rootDir):
for basename in filenames:
if not basename.endswith('.py'):
continue
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()
fn = os.path.join(dirpath, basename)
with io.open(fn, encoding='utf-8') as inf:
code = inf.read()