Add note about testing inconsistency

Mitigates #56396

The true fix would be https://github.com/pytorch/pytorch/pull/75608 but there are many issues to debug and this is a good step forward to at least clarify.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75620
Approved by: https://github.com/kit1980, https://github.com/seemethere, https://github.com/malfet
This commit is contained in:
Jane Xu 2022-04-12 00:54:18 +00:00 committed by PyTorch MergeBot
parent 6d9210be68
commit 8d3e3ebc58

View file

@ -342,6 +342,8 @@ The `expecttest` and `hypothesis` libraries must be installed to run the tests.
an optional dependency, and `pytest` may help run tests more selectively.
All these packages can be installed with `conda` or `pip`.
**Weird note:** In our CI (Continuous Integration) jobs, we actually run the tests from the `test` folder and **not** the root of the repo, since there are various dependencies we set up for CI that expects the tests to be run from the test folder. As such, there may be some inconsistencies between local testing and CI testing--if you observe an inconsistency, please [file an issue](https://github.com/pytorch/pytorch/issues/new/choose).
### Better local unit tests with `pytest`
We don't officially support `pytest`, but it works well with our