MCPcopy Index your code
hub / github.com/prometheus/client_python / setUp

Method setUp

tests/test_multiprocess.py:595–598  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

593
594class TestMmapedDict(unittest.TestCase):
595 def setUp(self):
596 fd, self.tempfile = tempfile.mkstemp()
597 os.close(fd)
598 self.d = mmap_dict.MmapedDict(self.tempfile)
599
600 def test_process_restart(self):
601 self.d.write_value('abc', 123.0, 987.0)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected