← Back to team overview

dulwich-users team mailing list archive

Re: Test runners, nose and python 2.7

 

On Sun, Dec 26, 2010 at 02:37:31AM +0100, Jelmer Vernooij wrote:
> === modified file 'Makefile'
> --- Makefile	2010-12-20 14:47:32 +0000
> +++ Makefile	2010-12-26 01:09:46 +0000
> @@ -1,8 +1,12 @@
>  PYTHON = python
>  SETUP = $(PYTHON) setup.py
>  PYDOCTOR ?= pydoctor
> -TESTRUNNER = $(shell which nosetests)
> -TESTFLAGS =
> +ifeq ($(shell $(PYTHON) -c "import sys; print sys.version_info >= (2, 7)"),True)
> +TESTRUNNER = unittest
> +else
> +TESTRUNNER = testtools
^^ s/testtools/testtools.run/

Cheers,

Jelmer



References