##// END OF EJS Templates
Revert "IPython/utils/tests/test_path.py: Decode UTF-8 paths before passing them to `os.path` functions. Required for running `docker build`s of `jupyter/notebook` containers."...
John Kirkham -
Show More
@@ -430,11 +430,11 b' def test_unescape_glob():'
430
430
431 def test_ensure_dir_exists():
431 def test_ensure_dir_exists():
432 with TemporaryDirectory() as td:
432 with TemporaryDirectory() as td:
433 d = os.path.join(td, u'∂ir').encode("utf8")
433 d = os.path.join(td, u'∂ir')
434 path.ensure_dir_exists(d) # create it
434 path.ensure_dir_exists(d) # create it
435 assert os.path.isdir(d)
435 assert os.path.isdir(d)
436 path.ensure_dir_exists(d) # no-op
436 path.ensure_dir_exists(d) # no-op
437 f = os.path.join(td, u'ƒile').encode("utf8")
437 f = os.path.join(td, u'ƒile')
438 open(f, 'w').close() # touch
438 open(f, 'w').close() # touch
439 with nt.assert_raises(IOError):
439 with nt.assert_raises(IOError):
440 path.ensure_dir_exists(f)
440 path.ensure_dir_exists(f)
General Comments 0
You need to be logged in to leave comments. Login now