Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27561
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'rename': 0.07; 'run,': 0.07; 'unittest': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'cases': 0.15; 'doc,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sorting': 0.16; 'subject:run': 0.16; 'subject:unittest': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'jan': 0.18; 'sort': 0.21; 'all,': 0.21; 'kevin': 0.23; 'statement': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'header:X-Complaints-To:1': 0.28; 'this?': 0.28; 'run': 0.28; 'function': 0.30; 'to:addr:python-list': 0.33; 'built-in': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'test': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'respect': 0.63; 'skip:n 10': 0.63; 'received:fios.verizon.net': 0.84; 'zhang': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: unittest - sort cases to be run |
| Date | Tue, 21 Aug 2012 05:34:33 -0400 |
| References | <CAAZZSFyYPjHQVgZKQfVh9BZSpAKueGtN7-BpNiQfP2eYgEDZ_Q@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-251-66.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
| In-Reply-To | <CAAZZSFyYPjHQVgZKQfVh9BZSpAKueGtN7-BpNiQfP2eYgEDZ_Q@mail.gmail.com> |
| 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.3597.1345541711.4697.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1345541712 news.xs4all.nl 6937 [2001:888:2000:d::a6]:56790 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27561 |
Show key headers only | View raw
On 8/21/2012 5:09 AM, Kevin Zhang wrote: > Hi all, > > I want to sort the order of the unittest cases to be run, but found such > statement in Python doc, > "Note that the order in which the various test cases will be run is > determined by sorting the test function names with respect to the > built-in ordering for strings." > > s.addTest(BTest()) > s.addTest(ATest()) > TextTestRunner().run(ts) > > I need BTest() to be run prior to ATest(), is there any > natural/beautiful way to achieve this? Thanks, Rename it @BTest. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: unittest - sort cases to be run Terry Reedy <tjreedy@udel.edu> - 2012-08-21 05:34 -0400 Re: unittest - sort cases to be run goon12 <goon12@gmail.com> - 2012-08-21 10:27 -0700 Re: unittest - sort cases to be run goon12 <goon12@gmail.com> - 2012-08-21 10:27 -0700
csiph-web