Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    vim.chdir('/')
    eq(vim.eval('getcwd()'), '/')
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)
Ejemplo n.º 4
0
def test_chdir():
    pwd = vim.eval('getcwd()')
    vim.chdir('/')
    eq(vim.eval('getcwd()'), '/')
    vim.chdir(pwd)
    eq(vim.eval('getcwd()'), pwd)