diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-23 17:31:30 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-23 17:31:30 -0800 |
commit | e49eaae24bd4a30df3b44ff515d1d1247698a1cb (patch) | |
tree | 2bd621a56ebbf3fbaa8d9422827b53e49930a7ac /test_isort.py | |
parent | fd8a47757a51bb9594bdaef7225ff9959b890ad4 (diff) | |
download | isort-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.py | 2 |
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) |