------------------------------------------------------------
revno: 4108
committer: Anton Gladky <[email protected]>
timestamp: Tue 2014-07-22 19:23:17 +0200
message:
  Redirect --test output into stdout
  
  By default in unittest is used stderr, that is
  why autopkgtests are failing in Debian [1].
  
  
http://ci.debian.net/data/packages/unstable/amd64/y/yade/20140720_182020.autopkgtest.log
modified:
  py/tests/__init__.py


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/tests/__init__.py'
--- py/tests/__init__.py	2013-08-29 10:30:31 +0000
+++ py/tests/__init__.py	2014-07-22 17:23:17 +0000
@@ -1,7 +1,7 @@
 # encoding: utf-8
 # 2009 © Václav Šmilauer <[email protected]>
 """All defined functionality tests for yade."""
-import unittest,inspect
+import unittest,inspect,sys
 
 # add any new test suites to the list here, so that they are picked up by testAll
 allTests=['wrapper','core','pbc','clump','cohesive-chain']
@@ -25,7 +25,7 @@
 	@param module: fully-qualified module name, e.g. yade.tests.wrapper
 	"""
 	suite=unittest.defaultTestLoader().loadTestsFromName(module)
-	return unittest.TextTestRunner(verbosity=2).run(suite)
+	return unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(suite)
 
 def testAll():
 	"""Run all tests defined in all yade.tests.* modules and return
@@ -34,7 +34,7 @@
 	import doctest
 	for mod in allModules:
 		suite.addTest(doctest.DocTestSuite(mod))
-	return unittest.TextTestRunner(verbosity=2).run(suite)
+	return unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(suite)
 
 	
 

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to