summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 01:53:22 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 01:53:22 -0800
commit6ca76d3d9f2a744a267b7cea45e2d88e9827c0e1 (patch)
treec67965fe0e2e193c6bb601b1b97f8702ca3866e4
parent1492706314dd710a85cbd8602eabd92da082fcc5 (diff)
downloadisort-6ca76d3d9f2a744a267b7cea45e2d88e9827c0e1.tar.gz
See if setting default encoding fixes test
-rw-r--r--test_isort.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py
index 40c62e38..af240fc3 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -39,6 +39,12 @@ from isort.main import is_python_file
from isort.settings import WrapModes
try:
+ reload(sys) # Reload does the trick!
+ sys.setdefaultencoding('UTF8')
+except:
+ pass
+
+try:
import toml
except ImportError:
toml = None