Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ganesh Pal Newsgroups: comp.lang.python Subject: Re: python unit test frame work Date: Fri, 11 Dec 2015 04:05:57 +0530 Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 5gQpILca5I6UGxTP7Z+rUg+uv0vhi7+CZ5vQZncrsOMw== Return-Path: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100245 +python list . sorry I accidentally did a reply to Peter. On Dec 11, 2015 3:57 AM, "Ganesh Pal" 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