Example #1
0
def test__getfinalpathname():
    path = __file__.decode('mbcs')
    try:
        result = nt._getfinalpathname(path)
    except nt.LLNotImplemented:
        py.test.skip("_getfinalpathname not supported on this platform")
    assert os.path.exists(result)
Example #2
0
 def _getfinalpathname(space, w_path):
     path = space.unicode_w(w_path)
     try:
         result = nt._getfinalpathname(path)
     except nt.LLNotImplemented as e:
         raise OperationError(space.w_NotImplementedError,
                              space.wrap(e.msg))
     except OSError as e:
         raise wrap_oserror2(space, e, w_path)
     return space.wrap(result)
Example #3
0
 def _getfinalpathname(space, w_path):
     path = space.unicode_w(w_path)
     try:
         result = nt._getfinalpathname(path)
     except nt.LLNotImplemented as e:
         raise OperationError(space.w_NotImplementedError,
                              space.wrap(e.msg))
     except OSError as e:
         raise wrap_oserror2(space, e, w_path)
     return space.wrap(result)