[Python-modules-team] Bug#668691: Bug#668691: python3-pytest: py.test.sh doesn't get version number

Simon Chopin chopin.simon at gmail.com
Sun Apr 15 20:57:40 UTC 2012


tags 668691 + fixed pending
thanks

On Sat, Apr 14, 2012 at 10:27:27AM +0900, Koichi Akabe wrote:
> Package: python3-pytest
> Version: 2.2.3-2
> Severity: normal
> 
> Dear Maintainer,
> 
> py.test.sh doesn't get the version number of python.
> The following code is on py.test.sh:
> 
> > case $PYVERSION in
> >     "[0-9].[0-9]"|"[0-9]") ;;
> >     *) PYVERSION='';; #If ill-formed version, use the default.
> > esac
> 
> This code fails to check PYVERSION and always sets '' to PYVERSION

Thank you for reporting this, it is now fixed in the SVN repository.  I
intend to (ask Stefano to) upload it as soon as I will have written some
tests to avoid a regression in the future.

In the mean time, you can tell pytest to use the version X.Y of python
by using the following command instead of py.test-X.Y :
`pythonX.Y -m pytest`

Cheers,

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120415/4452f0f3/attachment.pgp>


More information about the Python-modules-team mailing list