summaryrefslogtreecommitdiff
path: root/test_isort.py
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-23 17:31:30 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-23 17:31:30 -0800
commite49eaae24bd4a30df3b44ff515d1d1247698a1cb (patch)
tree2bd621a56ebbf3fbaa8d9422827b53e49930a7ac /test_isort.py
parentfd8a47757a51bb9594bdaef7225ff9959b890ad4 (diff)
downloadisort-e49eaae24bd4a30df3b44ff515d1d1247698a1cb.tar.gz
Fix open to cast temp config file location to string type
Diffstat (limited to 'test_isort.py')
-rw-r--r--test_isort.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index 8ea07636..1908aef1 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -71,7 +71,7 @@ REALLY_LONG_IMPORT_WITH_COMMENT = ("from third_party import lib1, lib2, lib3, li
def default_settings_path(tmpdir_factory):
config_dir = tmpdir_factory.mktemp('config')
config_file = config_dir.join('.editorconfig')
- with open(config_file, 'w') as editorconfig:
+ with open(str(config_file), 'w') as editorconfig:
editorconfig.write(TEST_DEFAULT_CONFIG)
os.chdir(config_dir)
return str(config_dir)