diff -Nru python-debian-0.1.27ubuntu1/debian/changelog python-debian-0.1.27ubuntu2/debian/changelog --- python-debian-0.1.27ubuntu1/debian/changelog 2015-07-22 13:11:10.000000000 +0000 +++ python-debian-0.1.27ubuntu2/debian/changelog 2016-04-04 22:13:27.000000000 +0000 @@ -1,3 +1,10 @@ +python-debian (0.1.27ubuntu2) xenial; urgency=medium + + * Fix FTBFS due to test failure with patch from + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807351#26 + + -- Barry Warsaw Mon, 04 Apr 2016 18:05:52 -0400 + python-debian (0.1.27ubuntu1) wily; urgency=medium * Resynchronise with Debian. Remaining changes: diff -Nru python-debian-0.1.27ubuntu1/tests/test_deb822.py python-debian-0.1.27ubuntu2/tests/test_deb822.py --- python-debian-0.1.27ubuntu1/tests/test_deb822.py 2014-10-22 08:37:50.000000000 +0000 +++ python-debian-0.1.27ubuntu2/tests/test_deb822.py 2016-04-04 22:13:27.000000000 +0000 @@ -911,16 +911,17 @@ See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750247#35 """ - fd, filename = tempfile.mkstemp() - fp = os.fdopen(fd, 'wb') - fp.write(UNPARSED_PARAGRAPHS_WITH_COMMENTS.encode('utf-8')) - fp.close() - try: + fd, filename = tempfile.mkstemp() + fp = os.fdopen(fd, 'wb') + fp.write(UNPARSED_PARAGRAPHS_WITH_COMMENTS.encode('utf-8')) + fp.close() + with open_utf8(filename) as fh: - paragraphs = list(deb822.Deb822.iter_paragraphs( - fh, use_apt_pkg=True)) - self.assertEqual(paragraphs[0]['Build-Depends'], 'debhelper,') + self.assertRaises(SystemError, + list, + deb822.Deb822.iter_paragraphs( + fh, use_apt_pkg=True)) finally: os.remove(filename)