Merge lp:~vila/bzr/684662-fugitive-launchpad-plugin-tests into lp:bzr

Proposed by Vincent Ladeuil on 2010-12-03
Status: Merged
Approved by: Martin Packman on 2010-12-03
Approved revision: 5559
Merged at revision: 5559
Proposed branch: lp:~vila/bzr/684662-fugitive-launchpad-plugin-tests
Merge into: lp:bzr
Diff against target: 25 lines (+3/-1)
2 files modified
bzrlib/plugins/launchpad/test_lp_directory.py (+1/-1)
doc/en/release-notes/bzr-2.3.txt (+2/-0)
To merge this branch: bzr merge lp:~vila/bzr/684662-fugitive-launchpad-plugin-tests
Reviewer Review Type Date Requested Status
Martin Packman (community) 2010-12-03 Approve on 2010-12-03
Review via email: mp+42605@code.launchpad.net

Commit Message

Catch the fugitive TestDebuntuExpansions tests and bring them back in the isolation jail

Description of the Change

Both funny and scaring.

As mentioned in bug #684662, the TestDebuntuExpansions tests
managed to evade from the isolation jail by calling the wrong
setUp method.

I didn't precisely diagnosed why the tests were passing but
InvalidURL was probalby raised because there was no
launchpad_username set on the babune windows slave before my
recent tweaks.

To post a comment you must log in.
Martin Packman (gz) wrote :

From the original review it seems there wasn't anything deliberate in this:
<https://code.launchpad.net/~barry/bzr/609186-shortcuts/+merge/37787>

review: Approve
Vincent Ladeuil (vila) wrote :

Oh, of course I didn't imply it was deliberate. Thanks for the review !

Vincent Ladeuil (vila) wrote :

sent to pqm by email

John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/3/2010 6:54 AM, Vincent Ladeuil wrote:
> Oh, of course I didn't imply it was deliberate. Thanks for the review !

I wonder if we could add a tearDown() step that checked that setUp() was
called? Just a thought.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz5D9sACgkQJdeBCYSNAAN7sACeP03u7GXYRSDS8szGP3ug1dj/
oogAoI/g6ilOHGQe3cXdstU2JK2917do
=bXmb
-----END PGP SIGNATURE-----

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/plugins/launchpad/test_lp_directory.py'
2--- bzrlib/plugins/launchpad/test_lp_directory.py 2010-12-02 10:41:05 +0000
3+++ bzrlib/plugins/launchpad/test_lp_directory.py 2010-12-03 11:24:39 +0000
4@@ -361,7 +361,7 @@
5 """Test expansions for ubuntu: and debianlp: schemes."""
6
7 def setUp(self):
8- tests.TestCase.setUp(self)
9+ super(TestDebuntuExpansions, self).setUp()
10 self.directory = LaunchpadDirectory()
11
12 def _make_factory(self, package='foo', distro='ubuntu', series=None):
13
14=== modified file 'doc/en/release-notes/bzr-2.3.txt'
15--- doc/en/release-notes/bzr-2.3.txt 2010-12-03 07:52:35 +0000
16+++ doc/en/release-notes/bzr-2.3.txt 2010-12-03 11:24:39 +0000
17@@ -61,6 +61,8 @@
18 suite. This can include new facilities for writing tests, fixes to
19 spurious test failures and changes to the way things should be tested.
20
21+* ``TestDebuntuExpansions`` was escaping the test isolation by calling the
22+ wrong base class ``setUp``. (Vincent Ladeuil, #684622)
23
24 bzr 2.3b4
25 #########