← Back to team overview

dulwich-users team mailing list archive

Re: Test runners, nose and python 2.7

 

On Dec 27, 2010 6:53 PM, "Jelmer Vernooij" <jelmer@xxxxxxxxx> wrote:
>
> On Mon, Dec 27, 2010 at 06:07:55PM -0800, Dave Borowitz wrote:
> > Oh, and if I use nosetests manually, testtools is failing with a bunch
of
> > errors like the following. IIRC I mailed a change that fixes these, too.
> >
> > ======================================================================
> > ERROR:
> > dulwich.tests.test_repository.CreateRepositoryTests.test_create_memory
> > ----------------------------------------------------------------------
> > _StringException: Text attachment: traceback
> > ------------
> > Traceback (most recent call last):
> >   File
> >
"/home/dborowitz/.virtualenvs/dulwich/lib/python2.6/site-packages/testtools/runtest.py",
> > line 169, in _run_user
> >     return fn(*args, **kwargs)
> >   File
> >
"/home/dborowitz/.virtualenvs/dulwich/lib/python2.6/site-packages/testtools/testcase.py",
> > line 465, in _run_setup
> >     % self.__class__.__name__)
> > ValueError: TestCase.setUp was not called. Have you upcalled all the way
up
> > the hierarchy from your setUp? e.g. Call super(CreateRepositoryTests,
> > self).setUp() from your setUp().
> I think this is specific to one of your patches that hasn't landed yet.
> CreateRepositoryTests in trunk doesn't have a custom setUp() yet. Can you
verify
> with a clean trunk?

You're right, the first issue I had was at upstream master, but this one was
not. My bad.

> Cheers,
>
> Jelmer

References