MCPcopy Index your code
hub / github.com/python/mypy / _run_pytest_update_data

Function _run_pytest_update_data

mypy/test/meta/test_update_data.py:11–16  ·  view source on GitHub ↗

Runs a suite of data test cases through 'pytest --update-data' until either tests pass or until a maximum number of attempts (needed for incremental tests).

(data_suite: str)

Source from the content-addressed store, hash-verified

9
10
11def _run_pytest_update_data(data_suite: str) -> PytestResult:
12 """
13 Runs a suite of data test cases through 'pytest --update-data' until either tests pass
14 or until a maximum number of attempts (needed for incremental tests).
15 """
16 return run_pytest_data_suite(data_suite, extra_args=["--update-data"], max_attempts=3)
17
18
19class UpdateDataSuite(Suite):

Callers 1

test_update_dataMethod · 0.85

Calls 1

run_pytest_data_suiteFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…