##// END OF EJS Templates
Fixing broken tests on win32....
Fixing broken tests on win32. * Fixed tests related to get_home_dir. * Skipping test that involved killing a process in frontend.tests.test_process. * Added a few new tests for get_home_dir.

File last commit:

r856:50044c43
r2513:fa3cac41
Show More
test_cd.ipy
18 lines | 289 B | text/plain | TextLexer
# assumes there is /tmp and /opt
def curpath():
cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
print cwd
return cwd
import os
cd /
assert curpath() == '/'
%cd /tmp
assert curpath() == '/tmp'
pushd /opt
assert curpath() == '/opt'
popd
assert curpath() == '/tmp'