Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19374

unittest and threading

Subject unittest and threading
From Ross Boylan <ross@biostat.ucsf.edu>
Organization UCSF
Date 2012-01-24 13:54 -0800
Newsgroups comp.lang.python
Message-ID <mailman.5053.1327443409.27778.python-list@python.org> (permalink)

Show all headers | View raw


Is it safe to use unittest with threads?

In particular, if a unit test fails in some thread other than the one
that launched the test, will that information be captured properly?

A search of the net shows a suggestion that all failures must be
reported in the main thread, but I couldn't find anything definitive.

If it matters, I'm using CPython 2.7.

Thanks.  If you're using email, I'd appreciate a cc.
Ross Boylan

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

unittest and threading Ross Boylan <ross@biostat.ucsf.edu> - 2012-01-24 13:54 -0800
  Re: unittest and threading Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-25 07:47 +0000

csiph-web