Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'python,': 0.02; 'interpreter': 0.05; 'debug': 0.07; 'plenty': 0.07; 'tests.': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; 'invokes': 0.16; 'mode,': 0.16; "test'": 0.16; "tim's": 0.16; 'subject:python': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'looked': 0.18; 'trying': 0.19; '(where': 0.19; 'result.': 0.19; 'thu,': 0.19; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'source': 0.25; 'chapter': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'specifically': 0.29; 'testing': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; 'searches': 0.31; 'figure': 0.32; 'running': 0.33; 'something': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'building': 0.35; '14,': 0.36; 'subject:?': 0.36; 'unit': 0.37; 'turn': 0.37; 'nov': 0.38; 'pm,': 0.38; 'how': 0.40; "you're": 0.61; 'further': 0.61; 'built,': 0.84; 'russell': 0.84; 'obvious,': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc:content-type; bh=hC9SYicC5eiBqE+wUlM+rvmr6u4PZnLoqG3u7XyAE9M=; b=Y5KYIkrfjgSfiAkR9GoKZTicAaQ7sfwTX8lNs7orKO2pGMwaQ42pAsknJVqydkWJCe TnlU4BnJ8TyfOZ55vs5EsFvmiByGNdaRuFXyaazHD+64j4NEqurtyaQtp4Pp5SDI743O tMdhg1gYKFzAgs4clncHvSTyHbSKPqQuXt49enkmirHVuS2w3/oQQBxTD1R6XDN3w9q5 yDUNx1pMZEzrlOSagstXzgoFUI8AAr2NTIoKLwk/mKmqG1cSGNXnEfNwWAE+61tvT8fP /oJWOFq64WQbam15g19IytnykSc5gGKZSyO6WF9uUNy9Tfmwi8Y/lRCfOM/HEsTVYsKu NZDg== X-Received: by 10.204.230.17 with SMTP id jk17mr2319190bkb.6.1384460006121; Thu, 14 Nov 2013 12:13:26 -0800 (PST) MIME-Version: 1.0 Sender: zachary.ware@gmail.com In-Reply-To: References: From: Zachary Ware Date: Thu, 14 Nov 2013 14:13:06 -0600 X-Google-Sender-Auth: VkLNdOtTvJiYR7vY1fo6LN0mtBE Subject: Re: Running python's own unit tests? Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384460013 news.xs4all.nl 16007 [2001:888:2000:d::a6]:55391 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59474 On Thu, Nov 14, 2013 at 1:12 PM, Russell E. Owen wrote: > I'm building python from source and trying to figure out how to test the > result. I must be overlooking something obvious, but I looked through > the documentation and source and tried some google searches (which turn > up plenty about writing unit tests in python, but nothing about testing > a python distribution). > > Any hints? `python -m test -uall` will test everything (where 'python' invokes the interpreter you built, which may be "python_d.exe" on Windows if you built in Debug mode, or "python.exe" on OSX). If you're testing 2.7, '-m test' needs to be '-m test.regrtest'. For any further detail, check Tim's link to the devguide, specifically the chapter on running tests. -- Zach