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

Method setUp

tests/test_gc_collector.py:12–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10@unittest.skipIf(SKIP, "Test requires CPython")
11class TestGCCollector(unittest.TestCase):
12 def setUp(self):
13 gc.disable()
14 gc.collect()
15 self.registry = CollectorRegistry()
16
17 def test_working(self):
18 GCCollector(registry=self.registry)

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.90
collectMethod · 0.45

Tested by

no test coverage detected