Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Python < 3.5 tests Date: Wed, 07 Oct 2015 23:20:01 +0200 Message-ID: References: X-Original-To: Brian May X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 7 21:18:49 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.72 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: DYN_NJABL=ERR(0) 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-f178.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; bh=ZlbOs+HuTlY70kDbdCu3eooLG1ipvv2xguahBu38JiQ=; b=mLpqBS90xrMf3JsrwtLzmol4FBbY2umiw5daYxW0xw9e0DxuOAErR6cQGjJ7EjXzuy UqXJritP2GlxSJUTR73vvyZm7cONXNNFkvK3Hrzeei1AyeFl3dG3sqgwL3cWBct11Cqv o2pQbVpEwZ27JvrvOIsjvi7QdSc4pXp8vFPgR7eh4yJQxDJzR4+a9pm50RPtOSoi/7oa to9CWw4M616E0yV5rLbUQnoLmIHWSnHSX/UJQc5EiuqmNCoI+ViXpUBeEI01XxInX2WV 9AwSB/uKUCLlBeGUK62svYtM3+SP2oCRZ2q7p3Q6CuJPSJL7TYvkHNnitrprVdGd2e9N vs4Q== X-Gm-Message-State: ALoCoQlNBU53ecU7Ly773AEvdUe6GIAdi6dng3DcoBPQ5e+qNU+a630rnyYBmB0DzX5I2PMFl04d MIME-Version: 1.0 X-Received: by 10.50.102.4 with SMTP id fk4mr26101095igb.14.1444252706223; Wed, 07 Oct 2015 14:18:26 -0700 (PDT) X-Originating-IP: [122.57.98.209] Content-Type: multipart/alternative; boundary=047d7b11198d85a6a205218a49ef X-Mailing-List: archive/latest/12854 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJ3HoZ1odybgLBzOsjzzS289r7ufvatLwuiFUG_gfaWTNc0szw@mail.gmail.com Approved: robomod@news.nic.it Lines: 105 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Thu, 8 Oct 2015 10:18:26 +1300 X-Original-Message-ID: X-Original-References: <20151007211222.GA16055@prune.in.vpac.org> Xref: csiph.com linux.debian.maint.python:7542 --047d7b11198d85a6a205218a49ef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Probably the discover improvements in 3.5 try using python -m unittest2.discover On 8 Oct 2015 10:12, "Brian May" wrote: > Hello, > > When debugging #801208, I noticed the following output: > > dh_auto_test -O--buildsystem=3Dpybuild > I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pythonX.Y_2.= 7/build; > python2.7 -m unittest discover -v > > ---------------------------------------------------------------------- > Ran 0 tests in 0.000s > > OK > I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pythonX.Y_3.= 4/build; > python3.4 -m unittest discover -v > > ---------------------------------------------------------------------- > Ran 0 tests in 0.000s > > OK > I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pythonX.Y_3.= 5/build; > python3.5 -m unittest discover -v > ajax_select (unittest.loader._FailedTest) ... ERROR > > So it looks like it can't find the tests under Python 2.7 or Python 3.4, > so it use to work, however under Python 3.5 it now does find the tests > and they fail. > > This left me wondering: > > * Why does it not find the tests under Python 2.7, 3.4? What is > different about Python 3.5 that it does? > * Why is Python 3.4 still relevant? Hasn't 3.5 replaced 3.4? Why is it > being tested by pybuild? > > Regards > > --047d7b11198d85a6a205218a49ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Probably the discover improvements in 3.5 try using python -= m unittest2.discover

On 8 Oct 2015 10:12, "Brian May" <<= a href=3D"mailto:brian@microcomaustralia.com.au">brian@microcomaustralia.co= m.au> wrote:
= Hello,

When debugging #801208, I noticed the following output:

=C2=A0 =C2=A0dh_auto_test -O--buildsystem=3Dpybuild
=C2=A0 =C2=A0I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pyth= onX.Y_2.7/build;
=C2=A0 =C2=A0python2.7 -m unittest discover -v

=C2=A0 =C2=A0--------------------------------------------------------------= --------
=C2=A0 =C2=A0Ran 0 tests in 0.000s

=C2=A0 =C2=A0OK
=C2=A0 =C2=A0I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pyth= onX.Y_3.4/build;
=C2=A0 =C2=A0python3.4 -m unittest discover -v

=C2=A0 =C2=A0--------------------------------------------------------------= --------
=C2=A0 =C2=A0Ran 0 tests in 0.000s

=C2=A0 =C2=A0OK
=C2=A0 =C2=A0I: pybuild base:170: cd /=C2=ABPKGBUILDDIR=C2=BB/.pybuild/pyth= onX.Y_3.5/build;
=C2=A0 =C2=A0python3.5 -m unittest discover -v
=C2=A0 =C2=A0ajax_select (unittest.loader._FailedTest) ... ERROR

So it looks like it can't find the tests under Python 2.7 or Python 3.4= ,
so it use to work, however under Python 3.5 it now does find the tests
and they fail.

This left me wondering:

* Why does it not find the tests under Python 2.7, 3.4? What is
=C2=A0 different about Python 3.5 that it does?
* Why is Python 3.4 still relevant? Hasn't 3.5 replaced 3.4? Why is it<= br> =C2=A0 being tested by pybuild?

Regards

--047d7b11198d85a6a205218a49ef--