()
| 3619 | dgl.backend.backend_name == "mxnet", reason="MXNet doesn't support spawning" |
| 3620 | ) |
| 3621 | def test_forking_pickler(): |
| 3622 | ctx = mp.get_context("spawn") |
| 3623 | g = dgl.graph(([0, 1, 2], [1, 2, 3])) |
| 3624 | g.create_formats_() |
| 3625 | q = ctx.Queue(1) |
| 3626 | proc = ctx.Process(target=_test_forking_pickler_entry, args=(g, q)) |
| 3627 | proc.start() |
| 3628 | fmt = q.get()["created"] |
| 3629 | proc.join() |
| 3630 | assert "coo" in fmt |
| 3631 | assert "csr" in fmt |
| 3632 | assert "csc" in fmt |
| 3633 | |
| 3634 | |
| 3635 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected