summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2015-07-12 23:20:34 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2015-07-12 23:20:34 -0700
commitba4befca4fbdccf3893126b72902f02192c36cd7 (patch)
tree9184ae1b3850a8f8ea1da02d5431d07f3ef96379
parent8e7bb0f3734aaf68d29acf39305a47c4283536e1 (diff)
downloadisort-ba4befca4fbdccf3893126b72902f02192c36cd7.tar.gz
Fix test
-rw-r--r--test_isort.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index 9769263e..d7a91887 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1434,7 +1434,7 @@ def test_other_file_encodings():
try:
tmp_dir = tempfile.mkdtemp()
for encoding in ('latin1', 'utf8'):
- tmp_fname = os.path.join(tmp_dir, 'test_{}.py'.format(encoding))
+ tmp_fname = os.path.join(tmp_dir, 'test_{0}.py'.format(encoding))
with codecs.open(tmp_fname, mode='w', encoding=encoding) as f:
file_contents = "# coding: {0}\n\ns = u'ã'\n".format(encoding)
f.write(file_contents)