[Python-modules-commits] [contextlib2] 06/06: Add DEP-8 tests.

Tristan Seligmann mithrandi at moszumanska.debian.org
Fri Jun 30 01:17:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

mithrandi pushed a commit to branch master
in repository contextlib2.

commit ca38b1fd0aac69c3f7e0ae0aafc6dea079fcb3ee
Author: Tristan Seligmann <mithrandi at debian.org>
Date:   Fri Jun 30 03:04:04 2017 +0200

    Add DEP-8 tests.
---
 debian/changelog                | 1 +
 debian/control                  | 1 -
 debian/tests/control            | 2 ++
 debian/tests/python-contextlib2 | 9 +++++++++
 4 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index eae7512..8b26d1c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ contextlib2 (0.5.5-1) unstable; urgency=medium
   * New upstream release.
   * Bump Standards-Version to 4.0.0 (no changes).
   * Use https URL for copyright format.
+  * Add DEP-8 tests.
 
  -- Tristan Seligmann <mithrandi at debian.org>  Fri, 30 Jun 2017 02:48:38 +0200
 
diff --git a/debian/control b/debian/control
index 9716a45..ef54849 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,6 @@ Build-Depends:
  python-unittest2 (>= 0.6.0),
  python3-all,
  python3-setuptools,
- python3-unittest2 (>= 0.6.0),
 Standards-Version: 4.0.0
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/contextlib2.git
 Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/contextlib2.git
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0f9eab9
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: python-contextlib2
+Depends: @, python-unittest2
diff --git a/debian/tests/python-contextlib2 b/debian/tests/python-contextlib2
new file mode 100644
index 0000000..a6dca13
--- /dev/null
+++ b/debian/tests/python-contextlib2
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e -u
+cp test_contextlib2.py "$ADTTMP"
+cd "$ADTTMP/"
+export PYTHONWARNINGS=d
+(pyversions -i; py3versions -i) \
+| tr ' ' '\n' \
+| xargs -I {} env {} \
+  -m unittest discover --verbose 2>&1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/contextlib2.git



More information about the Python-modules-commits mailing list