]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/util/fileutil.py
Fix fileutil tests.
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / util / fileutil.py
index 6449ff1ee8030afef4b531c60d0e53edac64750b..f923e1a03f466231e34a4d64bbb69c23eb7c9be5 100644 (file)
@@ -287,7 +287,7 @@ def abspath_expanduser_unicode(path, base=None, long_path=True):
     """
     if not isinstance(path, unicode):
         raise AssertionError("paths must be Unicode strings")
-    if base is not None:
+    if base is not None and long_path:
         precondition_abspath(base)
 
     path = expanduser(path)