intelmq
intelmq copied to clipboard
Test method in packages does not work on Debian 13 detecting intelmq
in the package build environment
[ 47s] dh_auto_test -O--buildsystem=pybuild
[ 47s] I: pybuild base:311: cd /usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build; python3.13 -m unittest discover -v
...
[ 53s] test_intelmqctl_log (intelmq.tests.bin.test_intelmqctl.TestIntelMQController.test_intelmqctl_log) ... /usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build/intelmq/lib/utils.py:222: PendingDeprec
ationWarning:
[ 53s] you should no longer specify 'unsafe'.
[ 53s] For **dumping only** use yaml=YAML(typ='full')
[ 53s]
[ 53s] config = YAML(typ="unsafe", pure=True).load(fpconfig)
[ 53s] /usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build/intelmq/lib/utils.py:263: PendingDeprecationWarning:
[ 53s] you should no longer specify 'unsafe'.
[ 53s] For **dumping only** use yaml=YAML(typ='full')
[ 53s]
[ 53s] YAML(typ="unsafe", pure=True).dump(content, handle)
[ 53s] No valid IntelMQ installation found: DistributionNotFound
[ 53s] ERROR
...
[ 64s] ERROR: test_intelmqctl_log (intelmq.tests.bin.test_intelmqctl.TestIntelMQController.test_intelmqctl_log)
[ 64s] ----------------------------------------------------------------------
[ 64s] Traceback (most recent call last):
[ 64s] File "/usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build/intelmq/bin/intelmqctl.py", line 130, in __init__
[ 64s] VERSION = pkg_resources.get_distribution("intelmq").version
[ 64s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
[ 64s] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 527, in get_distribution
[ 64s] dist = get_provider(dist)
[ 64s] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 414, in get_provider
[ 64s] return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
[ 64s] ~~~~~~~^^^^^^^^^^^^^^^^^^
[ 64s] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1066, in require
[ 64s] needed = self.resolve(parse_requirements(requirements))
[ 64s] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 893, in resolve
[ 64s] dist = self._resolve_dist(
[ 64s] req, best, replace_conflicting, env, installer, required_by, to_activate
[ 64s] )
[ 64s] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 934, in _resolve_dist
[ 64s] raise DistributionNotFound(req, requirers)
[ 64s] pkg_resources.DistributionNotFound: The 'intelmq' distribution was not found and is required by the application
[ 64s]
[ 64s] During handling of the above exception, another exception occurred:
[ 64s]
[ 64s] Traceback (most recent call last):
[ 64s] File "/usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build/intelmq/tests/bin/test_intelmqctl.py", line 80, in setUp
[ 64s] self.intelmqctl = ctl.IntelMQController()
[ 64s] ~~~~~~~~~~~~~~~~~~~~~^^
[ 64s] File "/usr/src/packages/BUILD/.pybuild/cpython3_3.13_intelmq/build/intelmq/bin/intelmqctl.py", line 134, in __init__
[ 64s] sys.exit(1)
[ 64s] ~~~~~~~~^^^
[ 64s] SystemExit: 1
it uses pybuild's default method to run the tests
maybe we need to set the pyhonpath