def main():
sys.stderr.write('<STR_LIT>')<EOL>failurestrings = []<EOL>for (importer, modname, ispkg) in pkgutil.iter_modules(phydmslib.__path__):<EOL><INDENT>if (not ispkg) and modname[<NUM_LIT:0>] != '<STR_LIT:_>':<EOL><INDENT>sys.stderr.write('<STR_LIT>' % modname)<EOL>module = __import__('<STR_LIT>' % modname, None, None, modname.split('<STR_LIT:.>'))<EOL>suite = doctest.DocTestSuite(module)<EOL>del module<EOL>result = unittest.TestResult()<EOL>suite.run(result)<EOL>if result.wasSuccessful():<EOL><INDENT>sys.stderr.write('<STR_LIT>' % result.testsRun)<EOL><DEDENT>else:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>for (testcase, failstring) in result.failures:<EOL><INDENT>failurestrings.append(failstring)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if not failurestrings:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>for failstring in failurestrings:<EOL><INDENT>sys.stderr.write('<STR_LIT>' % failstring)<EOL><DEDENT><DEDENT>
Run the tests.