Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the tests with exceptions assertions having multiple top-level st…
…atements (pytorch#1264) Summary: Pull Request resolved: pytorch#1264 As titled. Add error message checks as well for test comprehensity and code readability. B908: Contexts with exceptions assertions like with self.assertRaises or with pytest.raises should not have multiple top-level statements. Each statement should be in its own context. That way, the test ensures that the exception is raised only in the exact statement where you expect it. Reviewed By: vivekmig Differential Revision: D55344319 fbshipit-source-id: aad315a15f764a9fb24d653c46c3940ae99248e9
- Loading branch information