[Python-modules-commits] [tox] 01/01: Simplify DEP-8 tests so that it doesn't try to run the full tox testsuite, but just a simple smoke test. For mysterious reasons, the full test suite passes in local adt-runs but fails in Ubuntu production.

Barry Warsaw barry at moszumanska.debian.org
Tue Feb 23 18:19:35 UTC 2016


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

barry pushed a commit to branch master
in repository tox.

commit f0d37834787ffdd8cb6039527a7f466aba14a099
Author: Barry Warsaw <barry at python.org>
Date:   Tue Feb 23 13:19:29 2016 -0500

    Simplify DEP-8 tests so that it doesn't try to run the full tox testsuite, but just a simple smoke test.  For mysterious reasons, the full test suite passes in local adt-runs but fails in Ubuntu production.
---
 debian/changelog       |  8 ++++++++
 debian/tests/control   |  5 ++---
 debian/tests/smoketest | 30 ++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 70e4fa3..df6b284 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tox (2.3.1-4) UNRELEASED; urgency=medium
+
+  * Simplify DEP-8 tests so that it doesn't try to run the full tox
+    testsuite, but just a simple smoke test.  For mysterious reasons, the
+    full test suite passes in local adt-runs but fails in Ubuntu production.
+
+ -- Barry Warsaw <barry at debian.org>  Tue, 23 Feb 2016 12:47:36 -0500
+
 tox (2.3.1-3) unstable; urgency=medium
 
   * d/tests/built: Fix upload snafu.
diff --git a/debian/tests/control b/debian/tests/control
index bb4acbb..4b758cf 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,2 @@
-Tests: built
-Depends: @, python3-all, python3-pytest, python-pytest, python3-pip,
-         virtualenv, python3-pytest-timeout, python3-pluggy
+Tests: smoketest
+Depends: @, python, python3
diff --git a/debian/tests/smoketest b/debian/tests/smoketest
new file mode 100755
index 0000000..35761bb
--- /dev/null
+++ b/debian/tests/smoketest
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+cat > tox.ini <<EOF
+[tox]
+envlist = py2,py3
+
+[testenv]
+commands = python -m unittest discover -v
+
+[testenv:py2]
+basepython = python2
+
+[testenv:py3]
+basepython = python3
+
+EOF
+
+cat > test_smoke.py <<EOF
+from unittest import TestCase
+
+class TestSimple(TestCase):
+    def setUp(self):
+        self.a = 1
+
+    def test_addition(self):
+        self.assertEqual(self.a + 1, 2)
+
+EOF
+
+tox

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



More information about the Python-modules-commits mailing list