Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.bugs.dist,linux.debian.maint.python Subject: Bug#937624: Test suite errors with Python3 (Was: Why is dh_auto_clean calling python2.7? (Was: Bug#937624: python-burrito: ...)) Date: Sun, 01 Sep 2019 07:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Sep 1 05:30:09 2019 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -4.2 Reply-To: Andreas Tille , 937624@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Med Packaging Team X-Debian-Pr-Message: followup 937624 X-Debian-Pr-Package: src:python-burrito X-Debian-Pr-Keywords: sid bullseye help X-Debian-Pr-Source: python-burrito X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 150; neutral, 128; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--python27, 0.000-+--python2.7, 0.000-+--Python3, 0.000-+--H*UA:NeoMutt MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Debian-Message: from BTS X-Mailing-List: archive/latest/1555740 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 135 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Sun, 1 Sep 2019 07:26:54 +0200 X-Original-Message-ID: <20190901052654.oiropn6kcn7sn5eb@an3as.eu> X-Original-References: <20190831075716.tstpwjitcs2bctdi@an3as.eu> <20190831080542.GA11010@mitya57.me> <20190831201359.zvsajijtsx7yb6mm@an3as.eu> Xref: csiph.com linux.debian.bugs.dist:972809 linux.debian.maint.python:11718 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