testtools change broke BZR_TEST_PDB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Packman | ||
testtools |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
After the change to testtools, BZR_TEST_PDB=1 does go into the debugger, but looking at the wrong stack, so it is no longer useful.
Perhaps this should in fact be fixed by moving that feature into testtools.
Example:
mbp@grace% BZR_TEST_PDB=1 ./bzr --no-plugins selftest Remote -1
bzr selftest: /home/mbp/
/home/
bzr-2.1.0dev5 python-2.6.4 Linux-2.
> /home/mbp/
-> return self.decorated.
(Pdb) bt
> /home/mbp/
-> return self.decorated.
(Pdb) c
=======
ERROR: test_branch_
-------
_StringException: Text attachment: log
------------
1.876 creating repository in file://
1.879 creating branch <bzrlib.
1.885 trying to create missing lock '/tmp/testbzr-
1.885 opening working tree '/tmp/testbzr-
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/home/
return fn(*args)
File "/home/
self.setUp()
File "/home/
tree = self.make_
File "/home/
b = self.make_
File "/home/
repo = self.make_
File "/home/
made_control = self.make_
File "/home/
maybe_a_url = self.get_
File "/home/
base = self.get_
File "/home/
self.
File "/home/
transport_
TypeError: start_server() takes exactly 1 argument (2 given)
------------
Related branches
- John A Meinel: Approve
-
Diff: 161 lines (+92/-4)2 files modifiedbzrlib/tests/__init__.py (+21/-4)
bzrlib/tests/test_selftest.py (+71/-0)
Changed in bzr: | |
milestone: | none → 2.3b2 |
status: | In Progress → Fix Released |
On Thu, 2010-01-07 at 01:15 +0000, Martin Pool wrote:
> Public bug reported:
>
> After the change to testtools, BZR_TEST_PDB=1 does go into the debugger,
> but looking at the wrong stack, so it is no longer useful.
>
> Perhaps this should in fact be fixed by moving that feature into
> testtools.
Its probably one of the unaltered bits of code - a reporter that takes
(self, test, err) rather than self, test, err=None, details=None) -
changing to that style will avoid testtools encountering an error and
should fix the feature.
-Rob