❦ 11 août 2013 21:17 CEST, Piotr Ożarowski <pi...@debian.org> :

>> > +export PYBUILD_TEST_NOSE=1
>> > +
>> >  %:
>> >         dh $@ --with python2 --buildsystem=pybuild
>> >  
>> > -override_dh_auto_test:
>> > -       PYBUILD_SYSTEM=custom \
>> > -       PYBUILD_TEST_ARGS="nosetests --with-doctest tests/*.py" 
>> > dh_auto_test
>> > -
>> 
>> Unfortunately, the files in tests are not prefixed by `test_`. So I
>> still need explicit test command, right?
>
> then I suggest to:
>
>  export PYBUILD_TEST_NOSE=1
>  export PYBUILD_TEST_ARGS="tests/*.py"
>
> or:
>
>  override_dh_auto_test:
>       PYBUILD_SYSTEM=custom \
>       PYBUILD_TEST_ARGS="{interpreter} -m nose --with-doctest tests/*.py" 
> dh_auto_test
>
> so that each interpreter's nose module is used instead of the one
> hardcoded in /usr/bin/nosetests's shebang (this doesn't change much if
> pycha uses python2.7 only, though)

OK, thanks. This will be useful for another package that I am updating
now.
-- 
panic("floppy: Port bolixed.");
        2.2.16 /usr/src/linux/include/asm-sparc/floppy.h

Attachment: signature.asc
Description: PGP signature

Reply via email to