[pytables] 02/02: New patch for better control of verbosity in unittests

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Thu Apr 3 20:29:46 UTC 2014


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

a_valentino-guest pushed a commit to branch master
in repository pytables.

commit 8e64615a8040911b38052014d37d6e10f7726067
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Thu Apr 3 20:01:25 2014 +0000

    New patch for better control of verbosity in unittests
---
 debian/changelog                                   |  2 ++
 ...-Better-control-of-verbosity-in-unittests.patch | 33 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 36 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 65c0ce1..fe66285 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ pytables (3.1.1-1) UNRELEASED; urgency=medium
     - dropped debian/patches/0003-Only-use-msse2-flag-on-x86_64.patch,
       the problem has been fixed upstream
     - all remaining patches has been refreshed
+    - new patch (0003-Better-control-of-verbosity-in-unittests.patch)
+      for better control of verbosity in unittests
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Thu, 27 Mar 2014 21:06:21 +0000
 
diff --git a/debian/patches/0003-Better-control-of-verbosity-in-unittests.patch b/debian/patches/0003-Better-control-of-verbosity-in-unittests.patch
new file mode 100644
index 0000000..7a3906d
--- /dev/null
+++ b/debian/patches/0003-Better-control-of-verbosity-in-unittests.patch
@@ -0,0 +1,33 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Thu, 3 Apr 2014 19:55:57 +0000
+Subject: Better control of verbosity in unittests
+
+---
+ tables/tests/test_all.py | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/tables/tests/test_all.py b/tables/tests/test_all.py
+index e0564f7..0efe394 100644
+--- a/tables/tests/test_all.py
++++ b/tables/tests/test_all.py
+@@ -163,16 +163,17 @@ def test(verbose=False, heavy=False):
+     print_heavy(heavy)
+ 
+     # What a context this is!
+-    oldverbose, common.verbose = common.verbose, verbose
++    #oldverbose, common.verbose = common.verbose, verbose
++    verbosity = 1 + int(verbose)
+     oldheavy, common.heavy = common.heavy, heavy
+     try:
+-        result = unittest.TextTestRunner().run(suite())
++        result = unittest.TextTestRunner(verbosity=verbosity).run(suite())
+         if result.wasSuccessful():
+             return 0
+         else:
+             return 1
+     finally:
+-        common.verbose = oldverbose
++        #common.verbose = oldverbose
+         common.heavy = oldheavy  # there are pretty young heavies, too ;)
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 7e7c3c1..f2a573e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-use-dynamic-lib.patch
 0002-Use-system-compression-libs.patch
+0003-Better-control-of-verbosity-in-unittests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git



More information about the debian-science-commits mailing list