Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7542

Re: Python < 3.5 tests

From Robert Collins <robertc@robertcollins.net>
Newsgroups linux.debian.maint.python
Subject Re: Python < 3.5 tests
Date 2015-10-07 23:20 +0200
Message-ID <qh4hX-8jR-1@gated-at.bofh.it> (permalink)
References <qh4hX-8jR-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Probably the discover improvements in 3.5 try using python -m
unittest2.discover
On 8 Oct 2015 10:12, "Brian May" <brian@microcomaustralia.com.au> wrote:

> Hello,
>
> When debugging #801208, I noticed the following output:
>
>    dh_auto_test -O--buildsystem=pybuild
>    I: pybuild base:170: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build;
>    python2.7 -m unittest discover -v
>
>    ----------------------------------------------------------------------
>    Ran 0 tests in 0.000s
>
>    OK
>    I: pybuild base:170: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_3.4/build;
>    python3.4 -m unittest discover -v
>
>    ----------------------------------------------------------------------
>    Ran 0 tests in 0.000s
>
>    OK
>    I: pybuild base:170: cd /«PKGBUILDDIR»/.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
>
>

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar


Thread

Re: Python < 3.5 tests Robert Collins <robertc@robertcollins.net> - 2015-10-07 23:20 +0200
  Re: Python < 3.5 tests Brian May <brian@microcomaustralia.com.au> - 2015-10-08 00:30 +0200
    Re: Python < 3.5 tests Ben Finney <ben+debian@benfinney.id.au> - 2015-10-08 00:50 +0200
      Re: Python < 3.5 tests Robert Collins <robertc@robertcollins.net> - 2015-10-08 01:00 +0200
        Re: Python < 3.5 tests Ben Finney <ben+debian@benfinney.id.au> - 2015-10-08 01:10 +0200
          Re: Python < 3.5 tests Robert Collins <robertc@robertcollins.net> - 2015-10-08 01:20 +0200
    Re: Python < 3.5 tests Robert Collins <robertc@robertcollins.net> - 2015-10-08 01:00 +0200

csiph-web