##// END OF EJS Templates
Massive amount of work to improve the test suite, restores doctests....
Massive amount of work to improve the test suite, restores doctests. After Brian's comments, I realized that our test machinery was NOT in reality running all the ipython-syntax doctests we have. This is now fixed. The test suite isn't completely passing, but this commit is for the underlying machinery. I will now work on fixing as many broken tests as I can. Fixes https://bugs.launchpad.net/ipython/+bug/505071

File last commit:

r2146:f57d8b10 merge
r2414:7fce7ae8
Show More
update_revnum.py
32 lines | 711 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Change the revision number in release.py
This edits in-place release.py to update the revision number from bzr info.
Usage:
./update_revnum.py"""
import os
import pprint
import re
from toollib import *
if __name__ == '__main__':
ver = version_info()
pprint.pprint(ver)
rfile = open('../IPython/core/release.py','rb').read()
newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
f = open('../IPython/core/release.py','wb')
f.write(newcont)
f.close()