[Python-modules-team] Bug#692813: python-markdown: autopkgtest fails due to stderr

Martin Pitt mpitt at debian.org
Fri Nov 9 10:48:33 UTC 2012


Package: python-markdown
Version: 2.2.1-2
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch raring

Hello,

python-markdown's autopkgtest currently fails because the tests output
all the interesting bits to stderr; that's an unfortunate default of
Python's unittest, and the test scripts also use set -x. This leads
to:

adt-run: trace: & tree0t-python-markdown:  - - - - - - - - - - results - - - - - - - - - -
tree0t-python-markdown FAIL status: 0, stderr: + cp -r tests run-tests.py /tmp/tmp...
adt-run: trace: & tree0t-python-markdown:  - - - - - - - - - - stderr - - - - - - - - - -
+ cp -r tests run-tests.py /tmp/tmp.KBPiJHUJzY/tree0t-python-markdown-testtmp/adttmp/
+ cd /tmp/tmp.KBPiJHUJzY/tree0t-python-markdown-testtmp/adttmp
+ pyversions -i
+ PYTHONWARNINGS=d python2.7 run-tests.py
/usr/lib/python2.7/dist-packages/nose/util.py:14: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.
  from compiler.consts import CO_GENERATOR
/usr/lib/python2.7/dist-packages/nose/plugins/manager.py:405: UserWarning: Module tests was already imported from /tmp/tmp.KBPiJHUJzY/tree0t-python-markdown-testtmp/adttmp/tests/__init__.py, but /usr/lib/python2.7/dist-packages is being added to sys.path
  import pkg_resources
......................................................................................................................S......................................................................
----------------------------------------------------------------------
Ran 189 tests in 1.456s

You can also see this in Jenkins:

  https://jenkins.qa.ubuntu.com/view/Raring/view/AutoPkgTest/job/raring-adt-python-markdown/3/ARCH=i386,label=albali/

Attached patch fixes this by redirecting stderr to stdout.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-markdown.fix-autopkgtest.patch
Type: text/x-diff
Size: 1292 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20121109/2a51f27b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20121109/2a51f27b/attachment.pgp>


More information about the Python-modules-team mailing list