[Python-modules-team] Bug#849023: python3-setproctitle: Enable python3 build tests

Jeremy Bicha jbicha at ubuntu.com
Wed Dec 21 21:24:16 UTC 2016


Package: python3-setproctitle
Version: 1.1.10-1

Build tests are currently run for python2 only. Please enable them for
python3 also.

I added this to the bottom of the override_dh_auto_test section:
$(MAKE) PYTHON=python3 check

but some of the tests failed:

======================================================================
FAIL: test_embedded (__main__.SetproctitleTestCase)
Check the module works with embedded Python.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "py3/tests/setproctitle_test.py", line 313, in test_embedded
    executable=exe)
  File "py3/tests/setproctitle_test.py", line 416, in run_script
    self.fail("test script failed")
AssertionError: test script failed

======================================================================
FAIL: test_embedded_many_args (__main__.SetproctitleTestCase)
Check more complex cmdlines are handled in embedded env too.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "py3/tests/setproctitle_test.py", line 343, in test_embedded_many_args
    args=" ".join(["foo", "bar", "baz"]))
  File "py3/tests/setproctitle_test.py", line 416, in run_script
    self.fail("test script failed")
AssertionError: test script failed

----------------------------------------------------------------------
Ran 14 tests in 5.007s

FAILED (failures=2)
b''
b'Traceback (most recent call last):\n  File "stdin", line 1, in
<module>\nImportError: No module named setproctitle\n'
b''
b'Traceback (most recent call last):\n  File "stdin", line 1, in
<module>\nImportError: No module named setproctitle\n'



But Ubuntu had the tests working for before the switch to pybuild. See
the attachment from patches.ubuntu.com and the build log at
https://launchpad.net/ubuntu/+source/python-setproctitle/1.1.8-1ubuntu2/+build/10550583

Thanks,
Jeremy Bicha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-setproctitle_1.1.8-1ubuntu2.patch
Type: application/octet-stream
Size: 4090 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20161221/bd0c19b6/attachment.obj>


More information about the Python-modules-team mailing list