diff options
author | wim glenn <wim.glenn@melbourneit.com.au> | 2015-06-05 20:48:10 +1000 |
---|---|---|
committer | wim glenn <wim.glenn@melbourneit.com.au> | 2015-06-05 20:48:10 +1000 |
commit | 46a76d2243ac814355f5b46d9a4ede54e15052a5 (patch) | |
tree | a75d8eb95be36b94c1b3b855582690d22a05b88b | |
parent | 1057d5e12edbb3030045b7a7a8c82f0848635fef (diff) | |
download | isort-46a76d2243ac814355f5b46d9a4ede54e15052a5.tar.gz |
why not just use utf8 in the source directly, actually
-rw-r--r-- | test_isort.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py index 61e45b2e..b985d87f 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1,3 +1,4 @@ +# coding: utf-8 """test_isort.py. Tests all major functionality of the isort library @@ -1341,7 +1342,7 @@ def test_other_file_encodings(): for encoding in ('latin1', 'utf8'): tmp_fname = os.path.join(tmp_dir, 'test_{}.py'.format(encoding)) with codecs.open(tmp_fname, mode='w', encoding=encoding) as f: - file_contents = "# coding: {}\ns = u'\u00E3'\n".format(encoding) + file_contents = "# coding: {}\n\ns = u'ã'\n".format(encoding) f.write(file_contents) assert SortImports(file_path=tmp_fname).output == file_contents finally: |