Changeset 242f048 in trunk


Ignore:
Timestamp:
2016-05-04T14:54:42Z (9 years ago)
Author:
Brian Warner <warner@…>
Branches:
master
Children:
dd02f31a
Parents:
3524729
git-author:
Daira Hopwood <daira@…> (2016-02-15 15:29:29)
git-committer:
Brian Warner <warner@…> (2016-05-04 14:54:42)
Message:

Fix test to use arguments with absolute unicode paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/test_util.py

    r3524729 r242f048  
    569569
    570570    def test_make_dirs_with_absolute_mode(self):
    571         workdir = u"test_make_dirs_with_absolute_mode"
     571        workdir = fileutil.abspath_expanduser_unicode(u"test_make_dirs_with_absolute_mode")
    572572        fileutil.make_dirs(workdir)
    573         fileutil.make_dirs_with_absolute_mode(workdir, os.path.join(workdir,"a/b/c/d"), 0766)
     573        abspath = fileutil.abspath_expanduser_unicode(u"a/b/c/d", base=workdir)
     574        fileutil.make_dirs_with_absolute_mode(workdir, abspath, 0766)
    574575        new_mode = os.stat(os.path.join(workdir,"a/b/c/d")).st_mode & 0777
    575576        self.failUnlessEqual(new_mode, 0766)
Note: See TracChangeset for help on using the changeset viewer.