Ioana Lasc has proposed merging 
~ilasc/launchpad:fix-test-answer-contact-affiliation-for-product into 
launchpad:master.

Commit message:
Fix test_answer_contact_affiliation_for_product

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/409270
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of 
~ilasc/launchpad:fix-test-answer-contact-affiliation-for-product into 
launchpad:master.
diff --git a/lib/lp/registry/tests/test_pillaraffiliation.py b/lib/lp/registry/tests/test_pillaraffiliation.py
index 47e49e2..465aa76 100644
--- a/lib/lp/registry/tests/test_pillaraffiliation.py
+++ b/lib/lp/registry/tests/test_pillaraffiliation.py
@@ -516,9 +516,9 @@ class TestQuestionPillarAffiliation(TestCaseWithFactory):
         # target.
         answer_contact = self.factory.makePerson()
         english = getUtility(ILanguageSet)['en']
-        answer_contact.addLanguage(english)
         product = self.factory.makeProduct()
         with person_logged_in(answer_contact):
+            answer_contact.addLanguage(english)
             product.addAnswerContact(answer_contact, answer_contact)
         question = self.factory.makeQuestion(target=product)
         [badges] = (
_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to