(self)
| 1003 | maxDiff = 80 * 20 |
| 1004 | |
| 1005 | def setUp(self): |
| 1006 | if tracemalloc.is_tracing(): |
| 1007 | self.skipTest("tracemalloc must be stopped before the test") |
| 1008 | |
| 1009 | self.domain = 5 |
| 1010 | self.size = 123 |
| 1011 | self.obj = allocate_bytes(self.size)[0] |
| 1012 | |
| 1013 | # for the type "object", id(obj) is the address of its memory block. |
| 1014 | # This type is not tracked by the garbage collector |
| 1015 | self.ptr = id(self.obj) |
| 1016 | |
| 1017 | def tearDown(self): |
| 1018 | tracemalloc.stop() |
nothing calls this directly
no test coverage detected