Package: python-markdown
Version: 2.2.1-2
Tags: patch
User: [email protected]
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)
=== modified file 'debian/changelog'
--- debian/changelog	2012-11-06 10:48:11 +0000
+++ debian/changelog	2012-11-09 10:44:32 +0000
@@ -1,3 +1,11 @@
+python-markdown (2.2.1-2ubuntu1) UNRELEASED; urgency=low
+
+  * debian/tests/python{,3}-markdown: Test suite and set -x output to stderr;
+    redirect them to stdout so that autopkgtest does not consider it a
+    failure.
+
+ -- Martin Pitt <[email protected]>  Fri, 09 Nov 2012 11:39:56 +0100
+
 python-markdown (2.2.1-2) unstable; urgency=low
 
   * debian/tests/control: fix wrong dependency for python3-markdown test

=== modified file 'debian/tests/python-markdown'
--- debian/tests/python-markdown	2012-11-05 13:28:13 +0000
+++ debian/tests/python-markdown	2012-11-09 10:44:32 +0000
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+# do not output debugging and test output to stderr, it will count as failure
+exec 2>&1
 set -eux
 cp -r tests run-tests.py "$ADTTMP/"
 cd "$ADTTMP"

=== modified file 'debian/tests/python3-markdown'
--- debian/tests/python3-markdown	2012-11-05 13:28:13 +0000
+++ debian/tests/python3-markdown	2012-11-09 10:44:32 +0000
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+# do not output debugging and test output to stderr, it will count as failure
+exec 2>&1
 set -eux
 cp -r tests "$ADTTMP/"
 2to3 -w --no-diffs "$ADTTMP/tests/" 2>&1

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to