Some test modules are using unittest.main() instead of common_utils.run_tests() #50448
Labels
better-engineering
Relatively self-contained tasks for better engineering contributors
enhancement
Not as big of a feature, but technically not a bug. Should be easy to fix
module: testing
Issues related to the torch.testing module (not tests)
module: tests
Issues related to tests (not the torch.testing module)
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🚀 Feature
Some test modules are using
unittest.main()
instead oftorch.testing._internal.common_utils.run_tests()
. Thus, the arg parser incommon_utils
are not running for these tests, which makes the whole test suite somewhat inconsistent.pytorch/torch/testing/_internal/common_utils.py
Lines 149 to 162 in 71766d8
We encountered this in a problem while running tests
--save-xml
should be passed to each test module, but some test modules not usingcommon_utils.run_tests()
don't have these parser and will just throw anerror: unrecognized arguments: --save-xml
cc @mruberry @VitalyFedyunin @walterddr @ptrblck
The text was updated successfully, but these errors were encountered: