← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ikoruk/launchpad:upgrade-python-debian into launchpad:master

 

Yuliy Schwartzburg has proposed merging ~ikoruk/launchpad:upgrade-python-debian into launchpad:master.

Commit message:
fix failing tests with new python-debian

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ikoruk/launchpad/+git/launchpad/+merge/479972
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ikoruk/launchpad:upgrade-python-debian into launchpad:master.
diff --git a/lib/lp/soyuz/tests/test_binarysourcereference.py b/lib/lp/soyuz/tests/test_binarysourcereference.py
index c54e9a2..074f962 100644
--- a/lib/lp/soyuz/tests/test_binarysourcereference.py
+++ b/lib/lp/soyuz/tests/test_binarysourcereference.py
@@ -37,8 +37,11 @@ class TestBinarySourceReference(TestCaseWithFactory):
 
     def test_createFromRelationship_nonsense(self):
         bpr = self.factory.makeBinaryPackageRelease()
+        # in newer versions of deb822, when the version can't be processed, it
+        # will return None. Therefore, nonsense version will raise an exception
+        # that the version must be strict
         expected_message = (
-            r"Invalid Built-Using field; cannot be parsed by deb822: .*"
+            r"Built-Using must contain strict dependencies: .*"
         )
         with ExpectedException(UnparsableBuiltUsing, expected_message):
             self.reference_set.createFromRelationship(