示例#1
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    root = os.path.abspath(os.sep)
    # We can chdir to '/' on Windows, but then the pwd will be the root drive
    vim.chdir('/')
    eq(vim.eval('getcwd()'), root)
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)
示例#2
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    root = os.path.abspath(os.sep)
    # We can chdir to '/' on Windows, but then the pwd will be the root drive
    vim.chdir('/')
    eq(vim.eval('getcwd()'), root)
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)
示例#3
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    vim.chdir('/')
    eq(vim.eval('getcwd()'), '/')
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)
示例#4
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    vim.chdir('/')
    eq(vim.eval('getcwd()'), '/')
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)