← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:testfix-py3-soyuz-raw-escapes into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:testfix-py3-soyuz-raw-escapes into launchpad:master.

Commit message:
Fix text matching in TestSignatureVerification

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/394463

This was broken by correcting the spelling of \-escapes.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:testfix-py3-soyuz-raw-escapes into launchpad:master.
diff --git a/lib/lp/archiveuploader/tests/test_changesfile.py b/lib/lp/archiveuploader/tests/test_changesfile.py
index 18d6a7b..3daf5cc 100644
--- a/lib/lp/archiveuploader/tests/test_changesfile.py
+++ b/lib/lp/archiveuploader/tests/test_changesfile.py
@@ -377,7 +377,7 @@ class TestSignatureVerification(TestCase):
         self.assertEqual(
             getUtility(IPersonSet).getByEmail('foo.bar@xxxxxxxxxxxxx'),
             changesfile.signer)
-        expected = r"\AFormat: 1.7\n.*foo_1.0-1.diff.gz\Z"
+        expected = "\\AFormat: 1.7\n.*foo_1.0-1.diff.gz\\Z"
         self.assertTextMatchesExpressionIgnoreWhitespace(
             expected,
             changesfile.parsed_content)
@@ -399,7 +399,7 @@ class TestSignatureVerification(TestCase):
         self.assertEqual(
             getUtility(IPersonSet).getByEmail('foo.bar@xxxxxxxxxxxxx'),
             changesfile.signer)
-        expected = r"\AFormat: 1.7\n.*foo_1.0-1.diff.gz\Z"
+        expected = "\\AFormat: 1.7\n.*foo_1.0-1.diff.gz\\Z"
         self.assertTextMatchesExpressionIgnoreWhitespace(
             expected,
             changesfile.parsed_content)