[Python-modules-team] Bug#918418: django-prometheus FTBFS: test failures

Adrian Bunk bunk at debian.org
Sat Jan 5 22:06:02 GMT 2019


Source: django-prometheus
Version: 1.0.15-2
Severity: serious
Tags: ftbfs

Some recent change in unstable makes django-prometheus FTBFS:

https://tests.reproducible-builds.org/debian/history/django-prometheus.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/django-prometheus.html

...
======================================================================
ERROR: testAssertMetricEquals (django_prometheus.tests.test_testutils.PrometheusTestCaseMixinTest)
Tests assertMetricEquals.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/tests/test_testutils.py", line 69, in testAssertMetricEquals
    self.t.assertMetricEquals(42, 'some_gauge', registry=self.registry)
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 102, in assertMetricEquals
    value = self.getMetric(metric_name, registry=registry, **labels)
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 55, in getMetric
    metric_name, registry.collect(), **labels)
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 48, in getMetricFromFrozenRegistry
    for n, l, value in metric.samples:
ValueError: too many values to unpack

======================================================================
ERROR: testGetMetricVector (django_prometheus.tests.test_testutils.PrometheusTestCaseMixinTest)
Tests getMetricVector.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/tests/test_testutils.py", line 53, in testGetMetricVector
    'some_nonexistent_gauge', registry=self.registry)
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 77, in getMetricVector
    metric_name, registry.collect())
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 61, in getMetricVectorFromFrozenRegistry
    for n, l, value in metric.samples:
ValueError: too many values to unpack

======================================================================
ERROR: testGetMetrics (django_prometheus.tests.test_testutils.PrometheusTestCaseMixinTest)
Tests getMetric.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/tests/test_testutils.py", line 41, in testGetMetrics
    'some_gauge', registry=self.registry))
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 55, in getMetric
    metric_name, registry.collect(), **labels)
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 48, in getMetricFromFrozenRegistry
    for n, l, value in metric.samples:
ValueError: too many values to unpack

======================================================================
ERROR: testRegistrySaving (django_prometheus.tests.test_testutils.PrometheusTestCaseMixinTest)
Tests saveRegistry and frozen registries operations.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/tests/test_testutils.py", line 103, in testRegistrySaving
    'some_gauge', frozen_registry))
  File "/build/1st/django-prometheus-1.0.15/django_prometheus/testutils.py", line 48, in getMetricFromFrozenRegistry
    for n, l, value in metric.samples:
ValueError: too many values to unpack

----------------------------------------------------------------------
Ran 6 tests in 0.006s

FAILED (errors=4)
Test failed: <unittest.runner.TextTestResult run=6 errors=4 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=6 errors=4 failures=0>
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: python2.7 setup.py test 
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:8: build] Error 25



More information about the Python-modules-team mailing list