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