Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: George Trojan Newsgroups: comp.lang.python Subject: Re: Python 3.1 test issue Date: Fri, 18 Dec 2015 19:09:09 +0000 Lines: 60 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 6wlP3U9kLjCI4pBJeUWVXwgV44OzqvKObNpooEsJ1uqA== Return-Path: 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; 'subject:Python': 0.05; 'test,': 0.05; "'python": 0.07; 'exception.': 0.07; 'false,': 0.07; 'null,': 0.07; 'skip:/ 10': 0.07; 'socket': 0.07; 'subject:test': 0.07; 'dict': 0.09; 'non-default': 0.09; 'received:140': 0.09; 'python': 0.10; 'output': 0.13; 'options.': 0.15; 'alphabetical': 0.16; 'buggy': 0.16; 'defaults.': 0.16; 'flags.': 0.16; 'hangs': 0.16; 'mistake.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:issue': 0.16; 'subprocess': 0.16; 'wrote:': 0.16; 'test.': 0.18; 'tests.': 0.18; 'runs': 0.18; '>>>': 0.20; 'to:2**1': 0.21; 'arguments': 0.22; 'pass': 0.22; 'appears': 0.23; 'code,': 0.23; '(or': 0.23; 'thanks,': 0.24; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'command': 0.26; 'installed': 0.26; 'skip:" 20': 0.26; 'checking': 0.27; 'issue,': 0.27; 'this.': 0.28; "skip:' 10": 0.28; '3.1': 0.29; 'fedora': 0.29; 'follows': 0.29; 'raise': 0.29; 'creating': 0.30; 'skip:[ 10': 0.31; 'guess': 0.31; 'probably': 0.31; 'null': 0.33; 'particular,': 0.33; 'received:google.com': 0.35; 'could': 0.35; 'done': 0.35; 'according': 0.36; 'but': 0.36; 'received:209.85': 0.36; 'skip:{ 10': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'setting': 0.37; 'received:209': 0.38; 'several': 0.38; 'test': 0.39; 'does': 0.39; 'takes': 0.39; 'to:addr:python.org': 0.40; 'default': 0.61; 'charset:windows-1252': 0.62; 'above,': 0.63; 'skip:/ 30': 0.84; 'too):': 0.84; 'minute.': 0.91; 'trojan': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa-gov.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0Bfh8THlgtQv4Fu7giqJgjvl/+vt6eUsJYK0K5uJhn0=; b=zWqyd5Q5nwUWgGWwqLUq7Ofh3v2IK6cZMqvx8lIKKOlE22ZJMN4Gn7iQX673wMhFYw PBUFowGGT498H2P6cVAwzwUBkT7cB+kPzFWpmXrrJWFkuSSRQy66/D/URafAJ3zRGuU+ xtPAvu94Q+5tNJ/wrx4ZBxkxhxHAXgUMOW/6d8ue/rijCv99UWcqB62UwqxixaNMvZB/ zEx7lqAR9aN3RafrrrqiAmDX8tQ4Fey9jySHkpxDZXieLQUIE5AqncLoQbR5D5vwzBmg F4E/GEqmPjos2EEmRxxM0Y5FkMel5246gUoRPHMMCiwGt1R5zqSivTxONgUqZJcPX7Wl IdJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=0Bfh8THlgtQv4Fu7giqJgjvl/+vt6eUsJYK0K5uJhn0=; b=OK6XR2Vu5hFMy4EHeUmYI2WIgxMqL/vdOAMV3NpUEgwHkp+aWVBo6a2ckhNsRhpqdZ chQbdMjPCrOp+eFLf8CwFwWS+PTWknBKQRfRUWyKzfwJ4HpYb3XSe8wcQvVs4PBGtXOk 0q60zejRbThuLZXCPXvU6oLRtLWgNAmGqF1RLiPrK/rynbnmvhDDaJsfitxqEsgINcbZ ChP7kXl9cZGsEHWZvVjvBG9sbyAo25gVKDJhQ9PeP2xu4OmM+Gtw2FF4tRrD6ZdWSahH tqxf8FvE3r+6aEfjWkVsXKDw3QwqeCDhht8ARATQLWu7+D14uyJUzna/Z5otV6NqbW5W VQtQ== X-Gm-Message-State: ALoCoQlTRtjC1w9W+kBfgFa1Dgb2fYgiq5+L6hOG+coh4VqQDYJATs9v+I9HYShn5+0XN2kDPyVJtM3GxIP5rJE660vkcBpKkw== X-Received: by 10.98.8.2 with SMTP id c2mr7520639pfd.19.1450465751133; Fri, 18 Dec 2015 11:09:11 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: 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:100603 On 12/16/2015 8:07 PM, Terry Reedy wrote: > On 12/16/2015 1:22 PM, George Trojan wrote: >> I installed Python 3.1 on RHEL 7.2. > > According to the output below, you installed 3.5.1. Much better than > the years old 3.1. > This was not my only mistake. I ran the test on Fedora 19, not RHEL 7.2. >> The command make test hangs (or >> takes a lot of time on test_subprocess >> [396/397] test_subprocess > >> [["test_socket", 0, false], > > This appears to pass arguments to a specific test, test_socket. I > would guess this is done by setting sys.argv. This is the first I knew > about this. What follows of a dict of options. Most could have been > set with normal --option flags. Most are the defaults. > > > {"huntrleaks": false, > > "match_tests": null, > > "failfast": false, > > "output_on_failure": false, > > "use_resources": >> ["curses", "network", "decimal", "cpu", "subprocess", "urlfetch"], >> "pgo": false, > > "timeout": null > > } > > ] > > The relevant non-default is 'use_resources'. In particular, 'cpu' > runs 'certain CPU-heavy tests', and 'subprocess' runs all subprocess > tests. I ran both 'python -m test -usubprocess test_subprocess' and > 'python -m test -ucpu -usubprocess test_subprocess > and both took about the same time and less than a minute. > > The only thing that puzzles me is that I don't see '"randomize": true' > in the dict above, but test_subprocess is 317 in the default > alphabetical order, not 396. > > You might try re-running with defaults: python -m test. Thanks, after several trials I settled for command ("make test" hangs for Python3.4.1 too): dilbert@gtrojan> /usr/local/src/Python-3.4.1/python Lib/test/test_socket.py which was the culprit. After checking the code, I found that creating RDS socket did not raise an exception. >>> import socket >>> s = socket.socket(socket.PF_RDS, socket.SOCK_SEQPACKET, 0) >>> It does on other RH based systems (Centos, RHEL, Fedora != 19). FC 19 has /proc/sys/net/rds, other systems don't. So this is probably not a Python issue, but buggy implementation of RDS. George