TestCase.setUp was not called

Bug #875418 reported by Dan Callaghan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
Low
Dan Callaghan

Bug Description

A number of Dulwich 0.8.0 tests fail in Python 2.6 with testtools 0.9.11. The failures all look like this:

======================================================================
ERROR: dulwich.tests.test_pack.DeltaChainIteratorTests.test_ref_deltas_chain
----------------------------------------------------------------------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/testtools/testcase.py", line 506, 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(DeltaChainIteratorTests, self).setUp() from your setUp().

Patch attached.

Revision history for this message
Dan Callaghan (djc) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for the patch.

Actually, testtools is no longer supported in Dulwich post-0.8.0. It now just uses unittest or unittest2, neither of which raise this exception.

Jelmer Vernooij (jelmer)
Changed in dulwich:
status: New → Fix Committed
milestone: none → 0.8.1
importance: Undecided → Low
assignee: nobody → Dan Callaghan (djc)
Jelmer Vernooij (jelmer)
Changed in dulwich:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.