MCPcopy Create free account
hub / github.com/mpi4py/mpi4py / BaseTestBaseComm

Class BaseTestBaseComm

test/test_subclass.py:19–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19class BaseTestBaseComm:
20 #
21 def setUp(self):
22 self.comm = self.CommType(self.COMM_BASE)
23
24 def testSubType(self):
25 self.assertNotIn(
26 type(self.comm),
27 [
28 MPI.Comm,
29 MPI.Intracomm,
30 MPI.Cartcomm,
31 MPI.Graphcomm,
32 MPI.Distgraphcomm,
33 MPI.Intercomm,
34 ],
35 )
36 self.assertIsInstance(self.comm, self.CommType)
37
38 def testCloneFree(self):
39 if self.COMM_BASE != MPI.COMM_NULL:
40 comm = self.comm.Clone()
41 else:
42 comm = self.CommType()
43 self.assertIsInstance(comm, MPI.Comm)
44 self.assertIsInstance(comm, self.CommType)
45 comm.free()
46
47 def tearDown(self):
48 self.comm.free()
49
50
51# ---

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…