test suite work-around for python 2.5 requirement
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- Jun 2, 2010, 23:23 UTC
- Message-ID
- <injaoVtrfs7Li4aYBNxEQXkF9MAEkifYLJqrBJp5DqE7xic9MCOmsuM0PlcTeaONK62661_isOI@cipher.nrlssc.navy.mil>
- In-Reply-To
- <AANLkTinQrdJeTxoZ207kvv5R_3qUj5ocGgAlC22SQyOg@mail.gmail.com>
On 06/02/2010 01:21 AM, Sverre Rabbelier wrote:
Show 15 quoted lines
> 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 > "
Here's a work-around for the test suite until we figure out what ?? should be.
[PATCH 1/2] Makefile: add PYTHON_PATH to GIT-BUILD-OPTIONS [PATCH 2/2] t/t5800: skip if python version is older than 2.5