diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-28 01:53:22 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-28 01:53:22 -0800 |
commit | 6ca76d3d9f2a744a267b7cea45e2d88e9827c0e1 (patch) | |
tree | c67965fe0e2e193c6bb601b1b97f8702ca3866e4 | |
parent | 1492706314dd710a85cbd8602eabd92da082fcc5 (diff) | |
download | isort-6ca76d3d9f2a744a267b7cea45e2d88e9827c0e1.tar.gz |
See if setting default encoding fixes test
-rw-r--r-- | test_isort.py | 6 |
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 |