Source: python-ijson
Version: 3.3.0-1
Severity: normal
Tags: ftbfs
Dear Maintainer,
Build fails due to testsuite problems:
FAIL: test_basic_parse (test.test_benchmark.BenchmarkTests.test_basic_parse)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/test/test_benchmark.py",
line 38, in test_basic_parse
self._test_benchmark('basic_parse')
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/test/test_benchmark.py",
line 33, in _test_benchmark
self._do_test_benchmark(method, "python")
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/test/test_benchmark.py",
line 30, in _do_test_benchmark
self.assertEqual(0, status, "out:\n%s\nerr:%s" % (out.decode('utf-8'),
err.decode('utf-8')))
AssertionError: 0 != 1 : out:
#mbytes, method, test_case, backend, time_min, time_avg, time_median, time_max,
mb_per_sec_min, mb_per_sec_avg, mb_per_sec_median, mb_per_sec_max
0.000, basic_parse, long_list, python, 0.004, 0.004, 0.004, 0.004, 0.001,
0.001, 0.001, 0.001
0.000, basic_parse, long_list, yajl2, 0.004, 0.004, 0.004, 0.004, 0.001, 0.001,
0.001, 0.001
err:Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/ijson/benchmark.py", line
275, in <module>
main()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/ijson/benchmark.py", line
272, in main
run_benchmarks(args, benchmark)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/ijson/benchmark.py", line
214, in run_benchmarks
stats([megabytes / duration for duration in durations])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ijson/build/ijson/benchmark.py", line
214, in <listcomp>
stats([megabytes / duration for duration in durations])
~~~~~~~~~~^~~~~~~~~~
ZeroDivisionError: float division by zero
Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=python-ijson&arch=hppa&ver=3.3.0-1&stamp=1717834294&raw=0
I haven't looked this in detail but CLOCK_MONOTONIC timing is quite course
on hppa. I suspect if "duration for duration in durations" is longer the
division by zero error wouldn't occur.
Similar error occurs on hurd-i386.
Regards,
Dave Anglin
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)
Kernel: Linux 6.9.3-dirty (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)