##// END OF EJS Templates
Work again on bug 269966....
Work again on bug 269966. I think this time we do have a robust fix. I added tests that do fail after John Hunter's example, so if this one ever tries to return, we should catch it right away. Very, very nasty bug...

File last commit:

r856:50044c43
r1916:7b7637de
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'