Fix test_metric.py compatibility with prometheus_client 0.5. Contributed by Maarten de Vries .