xref: /aosp_15_r20/external/pytorch/pytest.ini (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Worker[pytest]
2*da0073e9SAndroid Build Coastguard Workeraddopts =
3*da0073e9SAndroid Build Coastguard Worker    # show summary of all tests that did not pass
4*da0073e9SAndroid Build Coastguard Worker    -rEfX
5*da0073e9SAndroid Build Coastguard Worker    # Make tracebacks shorter
6*da0073e9SAndroid Build Coastguard Worker    --tb=native
7*da0073e9SAndroid Build Coastguard Worker    # capture only Python print and C++ py::print, but not C output (low-level Python errors)
8*da0073e9SAndroid Build Coastguard Worker    --capture=sys
9*da0073e9SAndroid Build Coastguard Worker    # don't suppress warnings, but don't shove them all to the end either
10*da0073e9SAndroid Build Coastguard Worker    -p no:warnings
11*da0073e9SAndroid Build Coastguard Worker    # Use custom pytest shard located in test/pytest_shard_custom.py instead
12*da0073e9SAndroid Build Coastguard Worker    -p no:pytest-shard
13*da0073e9SAndroid Build Coastguard Worker    # don't rewrite assertions (usually not a problem in CI due to differences in imports, see #95844)
14*da0073e9SAndroid Build Coastguard Worker    --assert=plain
15*da0073e9SAndroid Build Coastguard Workertestpaths =
16*da0073e9SAndroid Build Coastguard Worker    test
17*da0073e9SAndroid Build Coastguard Workerjunit_logging_reruns = all
18*da0073e9SAndroid Build Coastguard Workerfilterwarnings =
19*da0073e9SAndroid Build Coastguard Worker    ignore:Module already imported so cannot be rewritten.*hypothesis:pytest.PytestAssertRewriteWarning
20*da0073e9SAndroid Build Coastguard Worker
21*da0073e9SAndroid Build Coastguard Workerxfail_strict = True
22*da0073e9SAndroid Build Coastguard Worker
23*da0073e9SAndroid Build Coastguard Workermarkers =
24*da0073e9SAndroid Build Coastguard Worker    serial: marks tests as needs to be run serially (deselect with '-m "not serial"')
25