Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Ben Finney Newsgroups: linux.debian.maint.python Subject: Re: Python < 3.5 tests Date: Thu, 08 Oct 2015 01:10:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 7 23:06:08 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.698 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -6.1 X-Injected-Via-Gmane: http://gmane.org/ Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:lnpMl+kmgx73BwMISecT8Tivrwc= X-Mailing-List: archive/latest/12863 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/85egh6xos7.fsf@benfinney.id.au Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 08 Oct 2015 10:05:44 +1100 X-Original-Message-ID: <85egh6xos7.fsf@benfinney.id.au> X-Original-References: <20151007211222.GA16055@prune.in.vpac.org> <85k2qyxply.fsf@benfinney.id.au> X-Original-X-Complaints-To: usenet@ger.gmane.org Xref: csiph.com linux.debian.maint.python:7552 Robert Collins writes: > On 8 October 2015 at 11:47, Ben Finney wrote: > > If you have a code base that is intended to run unchanged on Python > > 2 and Python 3, and that code base imports ‘unittest2’, you need > > both the Python 2 and Python 3 version of that package. > > > > If your code base targets only Python 3, it should not be using > > ‘unittest2’ at all. > > Thats false. unittest2 is a rolling backport. I'm not sure how that disagrees with what I wrote. Are you saying ‘unittest2’ is useful on Python 3.3 (for example) because it has improvements from later Python 3 standard library ‘unittest’? Or something else? > A true statement would be 'if your codebase will only ever run on the > latest release of Python then unittest2 offers no value' for it. Agreed. -- \ “We must respect the other fellow's religion, but only in the | `\ sense and to the extent that we respect his theory that his | _o__) wife is beautiful and his children smart.” —Henry L. Mencken | Ben Finney