[Debian-med-packaging] Bug#937624: Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...))

Andreas Tille andreas at an3as.eu
Sat Aug 31 21:13:59 BST 2019


Control: tags -1 help

On Sat, Aug 31, 2019 at 11:50:16AM +0200, Ondrej Novy wrote:
> > I see that python-all is still present in Build-Depends (line 9).
> 
> yep, that's reason. pybulid detects python{,-all} in B-D and if they are
> present, it runs clean for Python 2.

Thanks for pointing this out - it just came in an unexpected sequence.
Unfortunately it turns out that some build time tests are failing with:

...
======================================================================
ERROR: CLAppTester: Alternative TmpDir functions as expected
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 304, in __call__
    result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 330, in _handle_app_result_build_failure
    raise ApplicationError("Error constructing CommandLineAppResult.")
burrito.util.ApplicationError: Error constructing CommandLineAppResult.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util.py", line 769, in test_TmpDir
    result = app()
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 308, in __call__
    raise e1
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 299, in __call__
    result_paths=result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 104, in __init__
    raise ApplicationError('Could not open %s' % value.Path)
burrito.util.ApplicationError: Could not open "/tmp/fixed.txt"

======================================================================
ERROR: CLAppTester: TmpDir functions as expected w space in name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 304, in __call__
    result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 330, in _handle_app_result_build_failure
    raise ApplicationError("Error constructing CommandLineAppResult.")
burrito.util.ApplicationError: Error constructing CommandLineAppResult.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util.py", line 797, in test_TmpDir_w_space
    result = app()
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 308, in __call__
    raise e1
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 299, in __call__
    result_paths=result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 104, in __init__
    raise ApplicationError('Could not open %s' % value.Path)
burrito.util.ApplicationError: Could not open "/tmp/fixed.txt"

======================================================================
ERROR: CLAppTester: WorkingDir functions as expected
----------------------------------------------------------------------
...
======================================================================
ERROR: CLAppTester: parameters turned on, no data, space in command
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 304, in __call__
    result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 330, in _handle_app_result_build_failure
    raise ApplicationError("Error constructing CommandLineAppResult.")
burrito.util.ApplicationError: Error constructing CommandLineAppResult.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util.
    result = app()
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 3
    raise e1
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 2
    result_paths=result_paths)
  File "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", line 1
    raise ApplicationError('Could not open %s' % value.Path)
burrito.util.ApplicationError: Could not open "/tmp/fixed.txt"

----------------------------------------------------------------------
Ran 116 tests in 1.323s

FAILED (errors=12)
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /build/python-burrit
dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:10: build] Error 255


I admit I have no idea why these 12 errors will occure.

Any hint how to fix this?

Kind regards

       Andreas.

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list