Merge ~cjwatson/launchpad:py3-test-team-webservice into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 0d527b1da0494fa568f717cdd3cc91b14f3cbbda
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:py3-test-team-webservice
Merge into: launchpad:master
Diff against target: 28 lines (+4/-2)
1 file modified
lib/lp/registry/tests/test_team_webservice.py (+4/-2)
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+398701@code.launchpad.net

Commit message

Port lp.registry.tests.test_team_webservice to print_function

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Self-approving (trivial).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/registry/tests/test_team_webservice.py b/lib/lp/registry/tests/test_team_webservice.py
2index 345213f..533a8f9 100644
3--- a/lib/lp/registry/tests/test_team_webservice.py
4+++ b/lib/lp/registry/tests/test_team_webservice.py
5@@ -1,6 +1,8 @@
6 # Copyright 2010-2012 Canonical Ltd. This software is licensed under the
7 # GNU Affero General Public License version 3 (see the file LICENSE).
8
9+from __future__ import absolute_import, print_function
10+
11 __metaclass__ = type
12
13 from lazr.restfulclient.errors import (
14@@ -150,7 +152,7 @@ class TestTeamLimitedViewAccess(TestCaseWithFactory):
15 team = launchpad.projects['some-product'].bug_supervisor
16 failure_regex = '.*permission to see.*'
17 with ExpectedException(ValueError, failure_regex):
18- print team.name
19+ print(team.name)
20
21 def test_authorised_user_can_see_team_limitedView_details(self):
22 # Test that a user with limitedView permission can access the team and
23@@ -170,4 +172,4 @@ class TestTeamLimitedViewAccess(TestCaseWithFactory):
24 failure_regex = '(.|\n)*api_activemembers.*launchpad.View(.|\n)*'
25 with ExpectedException(Unauthorized, failure_regex):
26 members = team.members
27- print members.total_size
28+ print(members.total_size)

Subscribers

People subscribed via source and target branches

to status/vote changes: