[Python-modules-team] Bug#891725: python-scrapy FTBFS: test failures
Adrian Bunk
bunk at debian.org
Wed Feb 28 09:49:01 UTC 2018
Source: python-scrapy
Version: 1.5.0-1
Severity: serious
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-scrapy.html
...
_____ TextResponseTest.test_invalid_utf8_encoded_body_with_valid_utf8_BOM ______
self = <tests.test_http_response.TextResponseTest testMethod=test_invalid_utf8_encoded_body_with_valid_utf8_BOM>
def test_invalid_utf8_encoded_body_with_valid_utf8_BOM(self):
r6 = self.response_class("http://www.example.com",
headers={"Content-type": ["text/html; charset=utf-8"]},
body=b"\xef\xbb\xbfWORD\xe3\xab")
self.assertEqual(r6.encoding, 'utf-8')
> self.assertEqual(r6.text, u'WORD\ufffd\ufffd')
E AssertionError: u'WORD\ufffd' != u'WORD\ufffd\ufffd'
E - WORD\ufffd
E + WORD\ufffd\ufffd
E ? +
/build/1st/python-scrapy-1.5.0/.pybuild/pythonX.Y_2.7/build/tests/test_http_response.py:275: AssertionError
_____ HtmlResponseTest.test_invalid_utf8_encoded_body_with_valid_utf8_BOM ______
self = <tests.test_http_response.HtmlResponseTest testMethod=test_invalid_utf8_encoded_body_with_valid_utf8_BOM>
def test_invalid_utf8_encoded_body_with_valid_utf8_BOM(self):
r6 = self.response_class("http://www.example.com",
headers={"Content-type": ["text/html; charset=utf-8"]},
body=b"\xef\xbb\xbfWORD\xe3\xab")
self.assertEqual(r6.encoding, 'utf-8')
> self.assertEqual(r6.text, u'WORD\ufffd\ufffd')
E AssertionError: u'WORD\ufffd' != u'WORD\ufffd\ufffd'
E - WORD\ufffd
E + WORD\ufffd\ufffd
E ? +
/build/1st/python-scrapy-1.5.0/.pybuild/pythonX.Y_2.7/build/tests/test_http_response.py:275: AssertionError
______ XmlResponseTest.test_invalid_utf8_encoded_body_with_valid_utf8_BOM ______
self = <tests.test_http_response.XmlResponseTest testMethod=test_invalid_utf8_encoded_body_with_valid_utf8_BOM>
def test_invalid_utf8_encoded_body_with_valid_utf8_BOM(self):
r6 = self.response_class("http://www.example.com",
headers={"Content-type": ["text/html; charset=utf-8"]},
body=b"\xef\xbb\xbfWORD\xe3\xab")
self.assertEqual(r6.encoding, 'utf-8')
> self.assertEqual(r6.text, u'WORD\ufffd\ufffd')
E AssertionError: u'WORD\ufffd' != u'WORD\ufffd\ufffd'
E - WORD\ufffd
E + WORD\ufffd\ufffd
E ? +
More information about the Python-modules-team
mailing list