Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11718
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andreas Tille <tille@debian.org> |
| 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 | <yBqB3-3uJ-5@gated-at.bofh.it> (permalink) |
| References | <yB6sG-6ZZ-5@gated-at.bofh.it> <yB6sG-6ZZ-3@gated-at.bofh.it> <yB6Cl-7kr-1@gated-at.bofh.it> <yB8ut-8w2-1@gated-at.bofh.it> <yBi0N-6m8-3@gated-at.bofh.it> <yBqB3-3uJ-7@gated-at.bofh.it> <yB6sG-6ZZ-5@gated-at.bofh.it> <yBqB3-3uJ-7@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Sun Sep 1 05:30:09 2019 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4.2 |
| Reply-To | Andreas Tille <tille@debian.org>, 937624@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org> |
| 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 | <debian-bugs-dist@lists.debian.org> archive/latest/1555740 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| 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 | <E1i3bSx-0006bL-Dk@paradis.debian.org> <20190831075716.tstpwjitcs2bctdi@an3as.eu> <20190831080542.GA11010@mitya57.me> <CAOO6c=yY8En+n2OC=6=6QNec-rJ5hPxGtHQEb4rVW1MzUhRLwQ@mail.gmail.com> <20190831201359.zvsajijtsx7yb6mm@an3as.eu> <CAB4XWXwRHxv7MB0vY6er7-YSJwGhBUfhMcsEi7ViL1S_aMd0RQ@mail.gmail.com> <E1i3bSx-0006bL-Dk@paradis.debian.org> <CAB4XWXwRHxv7MB0vY6er7-YSJwGhBUfhMcsEi7ViL1S_aMd0RQ@mail.gmail.com> |
| Xref | csiph.com linux.debian.bugs.dist:972809 linux.debian.maint.python:11718 |
Cross-posted to 2 groups.
Show key headers only | View raw
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
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web