Source: google-i18n-address
Version: 2.3.2-2
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/fetch.php?pkg=google-i18n-address&arch=all&ver=2.3.2-2&stamp=1542749879&raw=0
...
=================================== FAILURES ===================================
_______________ test_downloader_country[None-file_names0-data0] ________________
tmpdir = local('/tmp/pytest-of-buildd/pytest-1/test_downloader_country_None_f0')
country = None, file_names = ('pl.json', 'us.json', 'all.json')
data = {'all.json': {'PL': 'dat\u0105', 'US': 'data'}, 'pl.json': {'PL':
'dat\u0105'}, 'us.json': {'US': 'data'}}
@pytest.mark.parametrize('country, file_names, data', [
(None, ('pl.json', 'us.json', 'all.json'), {
'pl.json': {'PL': 'dat\u0105'},
'us.json': {'US': 'data'},
'all.json': {'PL': 'dat\u0105', 'US': 'data'}}),
('PL', ('pl.json', 'all.json'), {
'pl.json': {'PL': 'dat\u0105'},
'all.json': {'PL': 'dat\u0105'}})])
def test_downloader_country(tmpdir, country, file_names, data):
data_dir = tmpdir.join('data')
download(country)
for file_name in file_names:
assert data_dir.join(file_name).exists()
> assert json.load(
data_dir.join(file_name), encoding='utf-8') == data[file_name]
tests/test_downloader.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.6/json/__init__.py:296: in load
return loads(fp.read(),
/usr/lib/python3/dist-packages/py/_path/common.py:171: in read
return f.read()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <encodings.ascii.IncrementalDecoder object at 0x7f5d0d5a3828>
input = b'{"PL": "dat\xc4\x85"}', final = True
def decode(self, input, final=False):
> return codecs.ascii_decode(input, self.errors)[0]
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position
11: ordinal not in range(128)
/usr/lib/python3.6/encodings/ascii.py:26: UnicodeDecodeError
________________ test_downloader_country[PL-file_names1-data1] _________________
tmpdir = local('/tmp/pytest-of-buildd/pytest-1/test_downloader_country_PL_fil0')
country = 'PL', file_names = ('pl.json', 'all.json')
data = {'all.json': {'PL': 'dat\u0105'}, 'pl.json': {'PL': 'dat\u0105'}}
@pytest.mark.parametrize('country, file_names, data', [
(None, ('pl.json', 'us.json', 'all.json'), {
'pl.json': {'PL': 'dat\u0105'},
'us.json': {'US': 'data'},
'all.json': {'PL': 'dat\u0105', 'US': 'data'}}),
('PL', ('pl.json', 'all.json'), {
'pl.json': {'PL': 'dat\u0105'},
'all.json': {'PL': 'dat\u0105'}})])
def test_downloader_country(tmpdir, country, file_names, data):
data_dir = tmpdir.join('data')
download(country)
for file_name in file_names:
assert data_dir.join(file_name).exists()
> assert json.load(
data_dir.join(file_name), encoding='utf-8') == data[file_name]
tests/test_downloader.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.6/json/__init__.py:296: in load
return loads(fp.read(),
/usr/lib/python3/dist-packages/py/_path/common.py:171: in read
return f.read()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <encodings.ascii.IncrementalDecoder object at 0x7f5d0da04898>
input = b'{"PL": "dat\xc4\x85"}', final = True
def decode(self, input, final=False):
> return codecs.ascii_decode(input, self.errors)[0]
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position
11: ordinal not in range(128)
/usr/lib/python3.6/encodings/ascii.py:26: UnicodeDecodeError
===================== 2 failed, 41 passed in 1.04 seconds ======================
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_i18address/build; python3.6 -m pytest
tests
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.7 3.6"
returned exit code 13
make: *** [debian/rules:5: binary-indep] Error 25