Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100245
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ganesh Pal <ganesh1pal@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: python unit test frame work |
| Date | Fri, 11 Dec 2015 04:05:57 +0530 |
| Lines | 15 |
| Message-ID | <mailman.121.1449786966.12405.python-list@python.org> (permalink) |
| References | <CACT3xuUOrbdkiEDkDMcVxCO+td4setJMb2TamW5te3FQK8oL0g@mail.gmail.com> <n4c706$g88$1@ger.gmane.org> <CACT3xuUzRn5Sq8V5zqLYx-QFuKkTKJHvcJGLTT9HLSTKPBL_tw@mail.gmail.com> <CACT3xuWxoQdg4P_5GCGVLXEWcDk09sFoROuZ8=Ukox42_kMc_w@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de 5gQpILca5I6UGxTP7Z+rUg+uv0vhi7+CZ5vQZncrsOMw== |
| Return-Path | <ganesh1pal@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; '+python': 0.07; 'exit': 0.07; 'subject:test': 0.07; 'subject:python': 0.14; 'received:io': 0.16; 'received:psf.io': 0.16; 'to:addr:web.de': 0.16; 'wrote:': 0.16; '>': 0.18; 'email addr:gmail.com>': 0.18; '2015': 0.20; 'to:2**1': 0.21; 'terminate': 0.22; 'am,': 0.23; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'sense': 0.26; 'message-id:@mail.gmail.com': 0.27; 'module.': 0.27; 'accidentally': 0.29; 'checks': 0.30; "can't": 0.32; 'continuing': 0.32; 'point,': 0.33; 'list': 0.34; 'received:google.com': 0.35; 'execution': 0.35; 'received:209.85': 0.36; 'subject:work': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'drop': 0.38; 'end': 0.39; 'means': 0.39; 'application': 0.39; 'to:addr:python.org': 0.40; 'reply': 0.68; 'habit': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8ohR9aHZcwO9VUq25FuiuMYl/jxHr7au5idK0VDBsdg=; b=GQF9AupeHwCtaFz0qgwHRWEbZQFdAmXOiYSnfrt8h87Ufq6jk0mALmdrT2QfpHoPUt dYOSMF6JmDTbS/WVnHbu7XV9UiJk5NLDVAyMe4F4xvUGfZumWLSitTCcneJBMUe871P4 vtjnFdvuUYYB+bvERIzu9t9rJiKikaO28QbHT4xczJ7g3d5C7dbEf+lAc0en/MdsB2uF GIJ2mDA3gCzQgP5dVEdxaU9TzjBgG9WHi0bd1ayc2gnmKLKc93DTy+zAAZ9aJAKJvvXK penxbkEo3AxS+/wOSMFK9W+yBkITHXbSjdYk7MhOZ51oXVx+APgTqHiDiBHfqZgckNNH jctg== |
| X-Received | by 10.112.140.6 with SMTP id rc6mr2748830lbb.115.1449786957481; Thu, 10 Dec 2015 14:35:57 -0800 (PST) |
| In-Reply-To | <CACT3xuWxoQdg4P_5GCGVLXEWcDk09sFoROuZ8=Ukox42_kMc_w@mail.gmail.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.20+ |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:100245 |
Show key headers only | View raw
+python list . sorry I accidentally did a reply to Peter. On Dec 11, 2015 3:57 AM, "Ganesh Pal" <ganesh1pal@gmail.com> wrote: > > > > Drop the habit to sprinkle sys.exit() all over the place. A well-behaved > > application has one exit point, at the end of the main module. > I was using sys.exit() as the means to stop the execution or terminate the program. I can't think of an alternative for my case : I have multiple checks if I don't meet them continuing with the main program doesn't make sense Regards, Ganesh
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python unit test frame work Ganesh Pal <ganesh1pal@gmail.com> - 2015-12-11 04:05 +0530
csiph-web