You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
739 B

diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py
index 1775d72..4b251c1 100644
--- a/IPython/utils/tests/test_path.py
+++ b/IPython/utils/tests/test_path.py
@@ -430,11 +430,11 @@ def test_unescape_glob():
def test_ensure_dir_exists():
with TemporaryDirectory() as td:
- d = os.path.join(td, u'∂ir')
+ d = os.path.join(td, u'∂ir').encode("utf8")
path.ensure_dir_exists(d) # create it
assert os.path.isdir(d)
path.ensure_dir_exists(d) # no-op
- f = os.path.join(td, u'ƒile')
+ f = os.path.join(td, u'ƒile').encode("utf8")
open(f, 'w').close() # touch
with nt.assert_raises(IOError):
path.ensure_dir_exists(f)