Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11714 > unrolled thread

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

Started byAndreas Tille <andreas@an3as.eu>
First post2019-08-31 22:20 +0200
Last post2019-09-01 07:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Test suite errors with Python3 (Was: Why is dh_auto_clean calling  python2.7? (Was: Bug#937624: python-burrito: ...)) Andreas Tille <andreas@an3as.eu> - 2019-08-31 22:20 +0200
    Bug#937624: Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...)) Andreas Tille <tille@debian.org> - 2019-09-01 07:40 +0200

#11714 — Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...))

FromAndreas Tille <andreas@an3as.eu>
Date2019-08-31 22:20 +0200
SubjectTest suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...))
Message-ID<yBi0N-6m8-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#11718 — Bug#937624: Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...))

FromAndreas Tille <tille@debian.org>
Date2019-09-01 07:40 +0200
SubjectBug#937624: Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...))
Message-ID<yBqB3-3uJ-5@gated-at.bofh.it>
In reply to#11714
On Sat, Aug 31, 2019 at 04:47:42PM -0400, Sandro Tosi wrote:
> burrito.util.ApplicationError: Could not open "/tmp/fixed.txt"
> 
> is the file there?

No, that file does not exist.

 $ grep -R /tmp/fixed.txt
burrito/tests/test_util.py:f = open('/tmp/fixed.txt','w')
burrito/tests/test_util.py:        result['fixed_file'] = ResultPath(Path='/tmp/fixed.txt')
burrito/tests/test_util.py:        result['fixed_file'] = ResultPath(Path='/tmp/fixed.txt')

The code snippet that should create the file is

...
#generate some stderr
print('I am stderr', file=stderr)

# Write the fixed file
f = open('/tmp/fixed.txt','w')
f.writelines(['I am fixed file'])
f.close()
...

I have no idea why it might fail.

Kind regards

     Andreas.

> > ...
> > ======================================================================
> > 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
> >
> 
> 
> -- 
> Sandro "morph" Tosi
> My website: http://sandrotosi.me/
> Me at Debian: http://wiki.debian.org/SandroTosi
> G+: https://plus.google.com/u/0/+SandroTosi
> 

-- 
http://fam-tille.de

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web