(self)
| 940 | self.assertRaises(ValueError, Gauge, 'i_info', 'help', registry=registry) |
| 941 | |
| 942 | def test_unregister_works(self): |
| 943 | registry = CollectorRegistry() |
| 944 | s = Summary('s', 'help', registry=registry) |
| 945 | self.assertRaises(ValueError, Gauge, 's_count', 'help', registry=registry) |
| 946 | registry.unregister(s) |
| 947 | Gauge('s_count', 'help', registry=registry) |
| 948 | |
| 949 | def custom_collector(self, metric_family, registry): |
| 950 | class CustomCollector: |
nothing calls this directly
no test coverage detected