Show More
@@ -430,12 +430,12 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') |
|
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.encode("utf8")) | |
436 | path.ensure_dir_exists(d) # no-op |
|
436 | path.ensure_dir_exists(d) # no-op | |
437 |
f = os.path.join(td, u'ƒile') |
|
437 | f = os.path.join(td, u'ƒile') | |
438 | open(f, 'w').close() # touch |
|
438 | open(f.encode("utf8"), '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) | |
441 |
|
441 |
General Comments 0
You need to be logged in to leave comments.
Login now