##// END OF EJS Templates
Let iptest pass arguments correctly to nose (in-process or in subprocess)....
Let iptest pass arguments correctly to nose (in-process or in subprocess). Fixes https://bugs.launchpad.net/ipython/+bug/507079 Also, remove relative imports from the iptest.py module so it can be run as a script as well under 2.5 or 2.6.

File last commit:

r856:50044c43
r2480:47473ae7
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'