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)
| 6020 | DEBUG = False |
| 6021 | |
| 6022 | def test(arith=None, verbose=None, todo_tests=None, debug=None): |
| 6023 | """ Execute the tests. |
| 6024 | |
| 6025 | Runs all arithmetic tests if arith is True or if the "decimal" resource |
| 6026 | is enabled in regrtest.py |
| 6027 | """ |
| 6028 | |
| 6029 | global ARITH, TODO_TESTS, DEBUG |
| 6030 | ARITH = arith |
| 6031 | TODO_TESTS = todo_tests |
| 6032 | DEBUG = debug |
| 6033 | unittest.main(__name__, verbosity=2 if verbose else 1, exit=False, argv=[__name__]) |
| 6034 | |
| 6035 | |
| 6036 | if __name__ == '__main__': |
no test coverage detected
searching dependent graphs…