MCPcopy Index your code
hub / github.com/RustPython/RustPython / test

Function test

Lib/test/test_decimal.py:6005–6016  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

6003DEBUG = False
6004
6005def 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
6019if __name__ == '__main__':

Callers 15

test_copying___code__Method · 0.90
run_perfMethod · 0.70
run_testMethod · 0.70
test_repr_strMethod · 0.70
test_decimal.pyFile · 0.70
newtestFunction · 0.70
test_unusual_getattroMethod · 0.70

Calls 1

mainMethod · 0.45

Tested by

no test coverage detected