##// END OF EJS Templates
Added test for the pretty.py extension and fixed sphinx docs....
Added test for the pretty.py extension and fixed sphinx docs. * The pretty.py extension now has a proper test, although it is minimal. * The latex/pdf Sphinx docs were building as a *single* chapter. The fix was to add a 6th argument of True to the latex_documents entry in conf.py

File last commit:

r856:50044c43
r2283:4d9d81ac
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'