This is failing with:
======================================================================
ERROR: bzrlib.tests.test_smart_request.TestJailHook.test_jail_hook
----------------------------------------------------------------------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/testtools/runtest.py", line 128, in _run_user
return fn(*args)
File "/usr/lib/python2.4/site-packages/testtools/testcase.py", line 342, in _run_setup
raise ValueError("setUp was not called")
ValueError: setUp was not called
------------
======================================================================
ERROR: bzrlib.tests.test_smart_request.TestJailHook.test_open_bzrdir_in_non_main_thread
----------------------------------------------------------------------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/testtools/runtest.py", line 128, in _run_user
return fn(*args)
File "/usr/lib/python2.4/site-packages/testtools/testcase.py", line 342, in _run_setup
raise ValueError("setUp was not called")
ValueError: setUp was not called
------------
I think Vincent was right that your class needs to be calling super().setUp()
I think the issue is that if the base class is using super() then this class needs to use super(). If the child is using ParentClass.setUp(self) then you wouldn't, although in that case the *mixin*'s super would never get called.
This is failing with: ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.test_ smart_request. TestJailHook. test_jail_ hook ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 4/site- packages/ testtools/ runtest. py", line 128, in _run_user python2. 4/site- packages/ testtools/ testcase. py", line 342, in _run_setup
=======
ERROR: bzrlib.
-------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args)
File "/usr/lib/
raise ValueError("setUp was not called")
ValueError: setUp was not called
------------
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.test_ smart_request. TestJailHook. test_open_ bzrdir_ in_non_ main_thread ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 4/site- packages/ testtools/ runtest. py", line 128, in _run_user python2. 4/site- packages/ testtools/ testcase. py", line 342, in _run_setup
ERROR: bzrlib.
-------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args)
File "/usr/lib/
raise ValueError("setUp was not called")
ValueError: setUp was not called
------------
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
I think Vincent was right that your class needs to be calling super().setUp()
I think the issue is that if the base class is using super() then this class needs to use super(). If the child is using ParentClass. setUp(self) then you wouldn't, although in that case the *mixin*'s super would never get called.