[pygts] 01/02: Redirect unittest output into stdout instead of stderr, hopefully fixes autopkgtests.
Anton Gladky
gladk at moszumanska.debian.org
Thu Jul 31 22:44:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository pygts.
commit 7cf772a364f376080125ce4f3eef488e4f5c58c0
Author: Anton Gladky <gladk at debian.org>
Date: Fri Aug 1 00:40:11 2014 +0200
Redirect unittest output into stdout instead of stderr, hopefully fixes autopkgtests.
---
debian/patches/fix_test_assert.patch | 9 +++++++++
debian/tests/pygtstest.py | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/patches/fix_test_assert.patch b/debian/patches/fix_test_assert.patch
index a480d0a..244ac65 100644
--- a/debian/patches/fix_test_assert.patch
+++ b/debian/patches/fix_test_assert.patch
@@ -44,3 +44,12 @@ Index: git/test/test.py
self.assert_(self.closed_surface.is_ok())
+@@ -3207,7 +3204,7 @@ if __name__ == '__main__':
+ for test in tests:
+ suite.addTest(unittest.makeSuite(test))
+
+- result = unittest.TextTestRunner(verbosity=2).run(suite)
++ result = unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(suite)
+
+ Nerrors = len(result.errors)
+ Nfailures = len(result.failures)
diff --git a/debian/tests/pygtstest.py b/debian/tests/pygtstest.py
index f517b3a..632cc35 100755
--- a/debian/tests/pygtstest.py
+++ b/debian/tests/pygtstest.py
@@ -3204,7 +3204,7 @@ if __name__ == '__main__':
for test in tests:
suite.addTest(unittest.makeSuite(test))
- result = unittest.TextTestRunner(verbosity=2).run(suite)
+ result = unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(suite)
Nerrors = len(result.errors)
Nfailures = len(result.failures)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pygts.git
More information about the debian-science-commits
mailing list