Path: csiph.com!eternal-september.org!feeder.eternal-september.org!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Python < 3.5 tests Date: Thu, 08 Oct 2015 01:00:01 +0200 Message-ID: References: X-Original-To: Ben Finney X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 7 22:57:07 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.72 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .robertcollins. - helo: .mail-ig0-f173.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XyUmzBtbgkpkuZWWF9lO074dTP37OxZb6fm99d+ReV0=; b=EjuoG+7Fh9tbJZQ011KHMaTlCKTxs5kmc0fAMkg9ByPxBghBivWAfK5/dUqAlG04Zd wIX9m2/kajqHgGnWuOrUpXEFgGGOPvopDGynJ3wYJWVuke3GW2tbUUtYdDk6ZRuzLxNx cWSZoa+Jeh2EO+tol4uD6WAp0e54HbVYdlh9Lyyv7TtlnY5gV8gzRwlazv/EmWhxRNR2 V1KoC3QqAAX0e1faz39Wr+YJVs812gNfDK4PjDekJmACMBnkWW0XCzDIcoW5q4C1mIdC xOKjS7ztMdI+szsNqNoiCke4Ul5qzUl3QowVQxRfGipRIU5iC8FHvUtvHsFROBXxJjuh tBeA== X-Gm-Message-State: ALoCoQk9v7jwDD1GtkzvWGy3ZynZUG1REtyug+Wvwc4mSik72CTEWOtp/x9cnpiK1bzsiTAejv63 MIME-Version: 1.0 X-Received: by 10.50.102.4 with SMTP id fk4mr252706igb.14.1444258607033; Wed, 07 Oct 2015 15:56:47 -0700 (PDT) X-Originating-IP: [122.57.98.209] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/12861 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJ3HoZ0uXikmg1thjvEqTo2TYP0WjKZdYtfxtfi7hv7BMu8L6Q@mail.gmail.com Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Thu, 8 Oct 2015 11:56:46 +1300 X-Original-Message-ID: X-Original-References: <20151007211222.GA16055@prune.in.vpac.org> <85k2qyxply.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7551 On 8 October 2015 at 11:47, Ben Finney wrote: > Brian May writes: > >> I see that there is a python3-unittest2 package - should I be using that >> one or the unittest built in Python 3.5? > > If you have a code base that is intended to run unchanged on Python 2 > and Python 3, and that code base imports =E2=80=98unittest2=E2=80=99, 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 > =E2=80=98unittest2=E2=80=99 at all. Thats false. unittest2 is a rolling backport. 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. -Rob --=20 Robert Collins Distinguished Technologist HP Converged Cloud