Re: [PATCH 1/5] t/t5800: skip if python version is older than 2.5
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Jun 2, 2010, 06:21 UTC
- Message-ID
- <AANLkTinQrdJeTxoZ207kvv5R_3qUj5ocGgAlC22SQyOg@mail.gmail.com>
- In-Reply-To
- <Wt_M4qptcPdpY0Q3jqUbfCU_HpY9NEjqs9eujZFD2rsUj5HRo__oQm7EUCxzXu38mC0y-ilUA14@cipher.nrlssc.navy.mil>
Heya,
On Wed, Jun 2, 2010 at 02:13, Brandon Casey <casey@nrlssc.navy.mil> wrote:
> This test script depends on the git-remote-testgit python script. This > python script makes use of the hashlib module which was released in python > version 2.5. So, add a new pre-requisite named PYTHON_2_5_OR_NEWER to > test-lib.sh and check for it in t5800.
Perhaps instead we can change git-remote-testgit to do:
"try: import hashlib except ImportError: import ?? as hashlib "
Otoh, python 2.5 has been out for a while (and is in fact only downloadable as a source-only release these days). To be exact, it was released on September 19, 2006.
-- Cheers, Sverre Rabbelier