MCPcopy Index your code
hub / github.com/python/cpython / test

Function test

Lib/test/test_decimal.py:6022–6033  ·  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

6020DEBUG = False
6021
6022def 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
6036if __name__ == '__main__':

Callers 15

index.spec.tsFile · 0.90
run_perfMethod · 0.90
test_copying___code__Method · 0.90
testMethod · 0.70
run_testMethod · 0.70
wrappedFunction · 0.70
test_repr_strMethod · 0.70
test_decimal.pyFile · 0.70

Calls 1

mainMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…