Correctly call superclass setUp in TestCase subclasses. (#18291)
authorEdward Yang <ezyang@fb.com>
Fri, 22 Mar 2019 14:43:40 +0000 (07:43 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Mar 2019 14:46:44 +0000 (07:46 -0700)
commit2934153f3508ac1710f358677d83de72789bb275
treef5369c617e520fbc31dace0e52b7b311098adff4
parent46990c20fa867aa29e049f7664da071e0cfc9c95
Correctly call superclass setUp in TestCase subclasses. (#18291)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18291
ghimport-source-id: d6e95e899bd320407967df41435801e54864ba62

Stack from [ghstack](https://github.com/ezyang/ghstack):
* #18292 Add test for #17271 (torch.exp incorrect for 2**31 size tensor)
* **#18291 Correctly call superclass setUp in TestCase subclasses.**

This makes PYTORCH_TEST_SKIP_FAST work correctly for more
tests, reducing the wasted testing effort on our slow_test job.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Differential Revision: D14567643

fbshipit-source-id: 40cf1d6556e0dd0a0550ff3d9ffed8b6000f8191
test/test_c10d.py
test/test_dataloader.py
test/test_distributed.py
test/test_distributions.py
test/test_jit.py
test/test_optim.py
test/test_thd_distributed.py