def ip2py(self,source):
        out = []
        newline = out.append
        #print 'IPSRC:\n',source,'\n###'  # dbg
        # The input source must be first stripped of all bracketing whitespace
        # and turned into lines, so it looks to the parser like regular user
        # input
        for lnum,line in enumerate(source.strip().splitlines()):
            newline(_ip.prefilter(line,lnum>0))
        newline('')  # ensure a closing newline, needed by doctest
        #print "PYSRC:", '\n'.join(out)  # dbg
        return '\n'.join(out)
Distribute test cases across workers.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/testing/plugin/ipdoctest.py/IPDocTestParser.ip2py--crossover with--dataset/ETHPy150Open django/django/django/test/runner.py/ParallelTestSuite.run