launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #27160
[Merge] ~cjwatson/launchpad:py3-mailing-list-xmlrpc-test-warning into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3-mailing-list-xmlrpc-test-warning into launchpad:master.
Commit message:
Correct spelling of \-escape in TestMailingListXMLRPCMessage
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/403389
This fixes a DeprecationWarning with Python >= 3.6.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-mailing-list-xmlrpc-test-warning into launchpad:master.
diff --git a/lib/lp/registry/tests/test_xmlrpc.py b/lib/lp/registry/tests/test_xmlrpc.py
index 11da72f..cfc665c 100644
--- a/lib/lp/registry/tests/test_xmlrpc.py
+++ b/lib/lp/registry/tests/test_xmlrpc.py
@@ -192,7 +192,7 @@ class TestMailingListXMLRPCMessage(TestCaseWithFactory):
'New mailing list message requiring approval for Team',
notifications[0]['subject'])
self.assertTextMatchesExpressionIgnoreWhitespace(
- '.*http://launchpad.test/~team/\+mailinglist-moderate.*',
+ r'.*http://launchpad.test/~team/\+mailinglist-moderate.*',
notifications[0].get_payload())
self.assertEqual({}, self.rpc_proxy.getMessageDispositions())