Skip to content

Commit

Permalink
[setup.py] Do not use unicode literals
Browse files Browse the repository at this point in the history
  • Loading branch information
phihag committed Jan 5, 2014
1 parent 1e91866 commit 01c6259
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function, unicode_literals
from __future__ import print_function

import pkg_resources
import sys
Expand Down
7 changes: 7 additions & 0 deletions test/test_unicode_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

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):
Expand All @@ -17,6 +21,9 @@ def test_all_files(self):
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()
Expand Down

0 comments on commit 01c6259

Please sign in to comment.