mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This reverts commit 14158d892a2bd9b34edb5637f9a05217ea0330bd.
Reverted https://github.com/pytorch/pytorch/pull/131151 on behalf of https://github.com/atalman due to Broke CI: test_testing.py::TestTestingCUDA::test_cuda_assert_should_stop_common_device_type_test_suite_cuda [GH job link](https://github.com/pytorch/pytorch/actions/runs/10131415299/job/28014665693) [HUD commit link](14158d892a
) ([comment](https://github.com/pytorch/pytorch/pull/131151#issuecomment-2255921015))
25 lines
839 B
INI
25 lines
839 B
INI
[pytest]
|
|
addopts =
|
|
# show summary of all tests that did not pass
|
|
-rEfX
|
|
# Make tracebacks shorter
|
|
--tb=native
|
|
# capture only Python print and C++ py::print, but not C output (low-level Python errors)
|
|
--capture=sys
|
|
# don't suppress warnings, but don't shove them all to the end either
|
|
-p no:warnings
|
|
# Use custom pytest shard located in test/pytest_shard_custom.py instead
|
|
-p no:pytest-shard
|
|
# don't rewrite assertions (usually not a problem in CI due to differences in imports, see #95844)
|
|
--assert=plain
|
|
testpaths =
|
|
test
|
|
junit_logging_reruns = all
|
|
filterwarnings =
|
|
ignore:Module already imported so cannot be rewritten.*hypothesis:pytest.PytestAssertRewriteWarning
|
|
|
|
xfail_strict = True
|
|
|
|
markers =
|
|
serial: marks tests as needs to be run serially (deselect with '-m "not serial"')
|