[Pysys-commits] SF.net SVN: pysys:[1053] branches/post-1.3.0
Brought to you by:
ben-spiller,
moraygrieve
From: <ben...@us...> - 2018-11-08 16:20:13
|
Revision: 1053 http://sourceforge.net/p/pysys/code/1053 Author: ben-spiller Date: 2018-11-08 16:20:07 +0000 (Thu, 08 Nov 2018) Log Message: ----------- Fixed a really serious bug in which random log lines might not be written to run.log and/or stdout when running tests multi-threaded (as a result of an underlying python bug https://bugs.python.org/issue35185 - has been in pysys for ages/forever) - fixed with a workaround where we avoid calling add/removehandler for each test and use a single handler to multiplex with threadlocals; not only does this solve the problem but it ought also to be faster since it avoids grabbing process-global logger locks during each testcase, and also gives us a potential way if we want it to make child threads started by tests inherit the logging behaviour of the parent test rather than just disspearing into the void; ThreadedStreamHandler is now used only for writing to stdout in the main thread; made some minor improvements to error reporting (on stderr) so that we have a way to debug if exceptions are unexectedly thrown from some improtant code blocks Modified Paths: -------------- branches/post-1.3.0/pysys/__init__.py branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys-dist/pysys-release.txt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |