Source: pygments
Version: 1.5+dfsg-1
Severity: wishlist
Tags: patch

Dear maintainer,

The attached patch adds DEP-8 testsĀ¹ to the package. One of the tests is
disabled because it depends on the files that are excluded from our DFSG
tarball.

Please consider including these tests or let me know if I can commit
them myself.

It was discussedĀ² at debian-qa@lists.d.o that we'll probably add DEP-8
support to our QA server at jenkins.debian.net.

[1]: 
http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;f=doc/README.package-tests;hb=HEAD
[2]: see the discussion starting at 
https://lists.debian.org/debian-qa/2012/11/msg00010.html

--
Dmitry Shachnev

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: debian/patches/disable_example_files_test.patch
===================================================================
--- debian/patches/disable_example_files_test.patch	(revision 0)
+++ debian/patches/disable_example_files_test.patch	(working copy)
@@ -0,0 +1,20 @@
+=== modified file 'tests/test_examplefiles.py'
+--- a/tests/test_examplefiles.py	2012-03-11 18:22:42 +0000
++++ b/tests/test_examplefiles.py	2012-11-12 07:18:38 +0000
+@@ -8,6 +8,7 @@
+ """
+ 
+ import os
++import nose
+ import pprint
+ import difflib
+ import cPickle as pickle
+@@ -19,6 +20,7 @@
+ STORE_OUTPUT = False
+ 
+ # generate methods
++@nose.SkipTest
+ def test_example_files():
+     testdir = os.path.dirname(__file__)
+     outdir = os.path.join(testdir, 'examplefiles', 'output')
+
Index: debian/tests/python3-pygments
===================================================================
--- debian/tests/python3-pygments	(revision 0)
+++ debian/tests/python3-pygments	(working copy)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -eu
+
+cp -r tests "$ADTTMP"
+cat debian/patches/disable_example_files_test.patch | (cd "$ADTTMP/tests" && patch -p2)
+cd "$ADTTMP/tests"
+
+for python in $(py3versions -i); do
+	PYTHONWARNINGS=d $python ./run.py 2>&1
+done

Property changes on: debian/tests/python3-pygments
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: debian/tests/control
===================================================================
--- debian/tests/control	(revision 0)
+++ debian/tests/control	(working copy)
@@ -0,0 +1,5 @@
+Tests: python-pygments
+Depends: python-pygments, python-nose
+
+Tests: python3-pygments
+Depends: python3-pygments, python3-nose
Index: debian/tests/python-pygments
===================================================================
--- debian/tests/python-pygments	(revision 0)
+++ debian/tests/python-pygments	(working copy)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -eu
+
+cp -r tests "$ADTTMP"
+cat debian/patches/disable_example_files_test.patch | (cd "$ADTTMP/tests" && patch -p2)
+cd "$ADTTMP/tests"
+
+for python in $(pyversions -i); do
+	PYTHONWARNINGS=d $python ./run.py 2>&1
+done

Property changes on: debian/tests/python-pygments
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: debian/control
===================================================================
--- debian/control	(revision 22964)
+++ debian/control	(working copy)
@@ -11,6 +11,7 @@
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pygments/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pygments/trunk/
 X-Python-Version: >= 2.4
+XS-Testsuite: autopkgtest
 
 Package: python-pygments
 Architecture: all

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to