Tests fail with python-debian >= 0.1.50
python-debian >= 0.1.50 (currently in experimental) causes test failures. Adding `self.maxDiff = None` so that we can see the details: ``` ====================================================================== FAIL: test_create_source_artifact (debusine.db.playground.tests.test_playground.PlaygroundTest.test_create_source_artifact) Test creating a source artifact. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cjwatson/src/freexian/projects/debusine/debusine/db/playground/tests/test_playground.py", line 197, in test_create_source_artifact self.assert_source_artifact_equal(artifact, "hello", "1.0-1") File "/home/cjwatson/src/freexian/projects/debusine/debusine/test/base.py", line 378, in assert_source_artifact_equal self.assertEqual( AssertionError: {'Format': '3.0 (quilt)', 'Source': 'hello'[1036 chars]z'}]} != {'Architecture': 'any', 'Binary': 'hello', [963 chars]0-1'} {'Architecture': 'any', 'Binary': 'hello', 'Checksums-Sha1': [{'name': 'hello_1.0-1.debian.tar.xz', 'sha1': '0566a1928f543585c0eef6359554ef6dac0b9ead', 'size': '25'}, {'name': 'hello_1.0.orig.tar.gz', 'sha1': 'bd99ef9d0bc23ffe8c2ff8f301b60c710e7304d0', 'size': '21'}], 'Checksums-Sha256': [{'name': 'hello_1.0-1.debian.tar.xz', 'sha256': '71ccdd40f56753452ee7714f7e2504a74dd8a7db13da0b311d555c61f4398097', 'size': '25'}, {'name': 'hello_1.0.orig.tar.gz', 'sha256': 'ec8a6cd7815b1ab9e052ba6b2f7efbcf0c18d765bb3145f8663e11a295834937', 'size': '21'}], 'Files': [{'md5sum': '0b4be7a6bfde5475ab5197dbe0c6060e', 'name': 'hello_1.0-1.debian.tar.xz', 'size': '25'}, {'md5sum': '057c7ada491e92d57e86a53959bd4a98', 'name': 'hello_1.0.orig.tar.gz', 'size': '21'}], 'Format': '3.0 (quilt)', 'Homepage': 'http://www.gnu.org/software/hello/', 'Maintainer': 'Example Maintainer <example@example.org>', + 'Package-List': '\n hello deb devel optional arch=any', - 'Package-List': [{'_other': 'arch=any', - 'package': 'hello', - 'package-type': 'deb', - 'priority': 'optional', - 'section': 'devel'}], 'Source': 'hello', 'Standards-Version': '4.3.0', 'Version': '1.0-1'} ====================================================================== FAIL: test_simulate_package_build (debusine.db.playground.tests.test_playground.PlaygroundTest.test_simulate_package_build) Test simulating a whole package build. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cjwatson/src/freexian/projects/debusine/debusine/db/playground/tests/test_playground.py", line 675, in test_simulate_package_build self.assert_source_artifact_equal( File "/home/cjwatson/src/freexian/projects/debusine/debusine/test/base.py", line 378, in assert_source_artifact_equal self.assertEqual( AssertionError: {'Files': [{'name': 'hello_1.0-1.debian.tar[1036 chars]3.0'} != {'Architecture': 'any', 'Binary': 'hello', [963 chars]0-1'} {'Architecture': 'any', 'Binary': 'hello', 'Checksums-Sha1': [{'name': 'hello_1.0-1.debian.tar.xz', 'sha1': '0566a1928f543585c0eef6359554ef6dac0b9ead', 'size': '25'}, {'name': 'hello_1.0.orig.tar.gz', 'sha1': 'bd99ef9d0bc23ffe8c2ff8f301b60c710e7304d0', 'size': '21'}], 'Checksums-Sha256': [{'name': 'hello_1.0-1.debian.tar.xz', 'sha256': '71ccdd40f56753452ee7714f7e2504a74dd8a7db13da0b311d555c61f4398097', 'size': '25'}, {'name': 'hello_1.0.orig.tar.gz', 'sha256': 'ec8a6cd7815b1ab9e052ba6b2f7efbcf0c18d765bb3145f8663e11a295834937', 'size': '21'}], 'Files': [{'md5sum': '0b4be7a6bfde5475ab5197dbe0c6060e', 'name': 'hello_1.0-1.debian.tar.xz', 'size': '25'}, {'md5sum': '057c7ada491e92d57e86a53959bd4a98', 'name': 'hello_1.0.orig.tar.gz', 'size': '21'}], 'Format': '3.0 (quilt)', 'Homepage': 'http://www.gnu.org/software/hello/', 'Maintainer': 'Example Maintainer <example@example.org>', + 'Package-List': '\n hello deb devel optional arch=any', - 'Package-List': [{'_other': 'arch=any', - 'package': 'hello', - 'package-type': 'deb', - 'priority': 'optional', - 'section': 'devel'}], 'Source': 'hello', 'Standards-Version': '4.3.0', 'Version': '1.0-1'} ``` Bisecting leads me to https://salsa.debian.org/python-debian-team/python-debian/-/commit/6d7b4f67fbbfb54b2e5aa1989adf56f94f13ae9d, so I guess we'd better adjust for that.
issue