##// END OF EJS Templates
Merge pull request #8887 from jakirkham/fix_unicode_dir_test_2...
Min RK -
r21736:e1e77106 merge
parent child Browse files
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