Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27584
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <goon12@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '21,': 0.07; 'run,': 0.07; 'unittest': 0.07; 'python': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'cases': 0.15; 'doc,': 0.16; 'reedy': 0.16; 'sorting': 0.16; 'subject:run': 0.16; 'subject:unittest': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'sort': 0.21; 'all,': 0.21; 'cc:2**0': 0.23; 'kevin': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'this?': 0.28; 'run': 0.28; 'function': 0.30; 'code': 0.31; 'could': 0.32; 'received:google.com': 0.34; 'built-in': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'test': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'respect': 0.63; 'skip:n 10': 0.63; 'august': 0.66; 'zhang': 0.84; 'received:209.85.220.184': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Tue, 21 Aug 2012 10:27:33 -0700 (PDT) |
| In-Reply-To | <mailman.3597.1345541711.4697.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=72.22.163.38; posting-account=X7KVigoAAACwvvpzva7eqWTmdvI07QCc |
| References | <CAAZZSFyYPjHQVgZKQfVh9BZSpAKueGtN7-BpNiQfP2eYgEDZ_Q@mail.gmail.com> <mailman.3597.1345541711.4697.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 72.22.163.38 |
| MIME-Version | 1.0 |
| Subject | Re: unittest - sort cases to be run |
| From | goon12 <goon12@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| 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> |
| Message-ID | <mailman.3612.1345570061.4697.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1345570061 news.xs4all.nl 6862 [2001:888:2000:d::a6]:56745 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27584 |
Show key headers only | View raw
On Tuesday, August 21, 2012 5:34:33 AM UTC-4, Terry Reedy wrote: > 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, If BTest *has* to run prior to ATest, it could be a code smell.
Back to comp.lang.python | Previous | Next — Previous in thread | 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