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


Groups > comp.lang.python > #19374

unittest and threading

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ross@biostat.ucsf.edu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'test,': 0.04; 'thread,': 0.04; 'cpython': 0.05; 'unittest': 0.07; 'matters,': 0.09; 'captured': 0.16; 'subject:unittest': 0.16; 'x-mailer:evolution 2.22.3.1': 0.16; 'cc:no real name:2**0': 0.21; 'cc:2**0': 0.25; 'thanks.': 0.25; 'suggestion': 0.25; "i'm": 0.27; 'to:addr:python- list': 0.33; 'anything': 0.34; 'test': 0.35; 'thread': 0.36; 'but': 0.37; 'using': 0.37; 'some': 0.38; 'shows': 0.39; "i'd": 0.39; "couldn't": 0.39; 'to:addr:python.org': 0.40; 'header :Message-Id:1': 0.62; 'safe': 0.70; 'received:38': 0.74; '2.7.': 0.84; 'received:10.0.2': 0.84; 'received:38.99': 0.91
Subject unittest and threading
From Ross Boylan <ross@biostat.ucsf.edu>
To python-list@python.org
Content-Type text/plain
Organization UCSF
Date Tue, 24 Jan 2012 13:54:23 -0800
Mime-Version 1.0
X-Mailer Evolution 2.22.3.1
Content-Transfer-Encoding 7bit
X-Spam_score -4.4
X-Spam_score_int -43
X-Spam_bar ----
X-Spam_report (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000]
Cc ross@biostat.ucsf.edu
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5053.1327443409.27778.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327443409 news.xs4all.nl 6983 [2001:888:2000:d::a6]:56088
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19374

Show key headers only | 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