Execute the tests. Runs all arithmetic tests if arith is True or if the "decimal" resource is enabled in regrtest.py
(arith=None, verbose=None, todo_tests=None, debug=None)
| 6003 | DEBUG = False |
| 6004 | |
| 6005 | def test(arith=None, verbose=None, todo_tests=None, debug=None): |
| 6006 | """ Execute the tests. |
| 6007 | |
| 6008 | Runs all arithmetic tests if arith is True or if the "decimal" resource |
| 6009 | is enabled in regrtest.py |
| 6010 | """ |
| 6011 | |
| 6012 | global ARITH, TODO_TESTS, DEBUG |
| 6013 | ARITH = arith |
| 6014 | TODO_TESTS = todo_tests |
| 6015 | DEBUG = debug |
| 6016 | unittest.main(__name__, verbosity=2 if verbose else 1, exit=False, argv=[__name__]) |
| 6017 | |
| 6018 | |
| 6019 | if __name__ == '__main__': |
no test coverage detected