commit | 465005c1e05a8af28cf58a7c5a381ee35ccaf793 | [log] [tgz] |
---|---|---|
author | PyTorch MergeBot <[email protected]> | Thu Dec 08 17:12:10 2022 +0000 |
committer | PyTorch MergeBot <[email protected]> | Thu Dec 08 17:12:10 2022 +0000 |
tree | 3a60efa2270a10e06ea10a4653bb387acc601cb6 | |
parent | 8ea90d926f659040f2292a73d0900443785fd5a9 [diff] |
Revert "Fix issue 38095 TODO in test_multiprocessing.py (#90335)" This reverts commit cbb2d5af81dcfaf181db7e9083b9c41b29fdb4eb. Reverted https://github.com/pytorch/pytorch/pull/90335 on behalf of https://github.com/clee2000 due to somehow caused test_multiprocessing to timeout https://hud.pytorch.org/pytorch/pytorch/commit/cbb2d5af81dcfaf181db7e9083b9c41b29fdb4eb https://github.com/pytorch/pytorch/actions/runs/3645873711/jobs/6159998523
diff --git a/test/test_multiprocessing.py b/test/test_multiprocessing.py index dba249e..ae0d87b 100644 --- a/test/test_multiprocessing.py +++ b/test/test_multiprocessing.py
@@ -418,7 +418,8 @@ t = [] for _ in range(5): t.append(q.get()) - self.assertEqual(t[0], torch.full([5], 0.)) + # TODO(#38095): Replace assertEqualIgnoreType. See issue #38095 + self.assertEqualIgnoreType(t[0], torch.full([5], 0.)) del t e.set() p.join(1) @@ -641,7 +642,7 @@ c2p.put(0) # notify parent child is ready p2c.get() # wait for record in parent e1.synchronize() - c2p.put(1) # notify synchronization is done in child + c2p.put(1) # nofity synchronization is done in child p2c.get() # wait for parent to finish before destructing child event @unittest.skipIf(NO_MULTIPROCESSING_SPAWN, "Disabled for environments that \