summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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