Source: anymarkup-core
Version: 0.8.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.10 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_anymarkup-core/build/anymarkup_core
> copying anymarkup_core/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_anymarkup-core/build/anymarkup_core
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_anymarkup-core/build; python3.10 -m 
> pytest test
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>
> collected 87 items
> 
> test/test_libs_not_installed.py ....                                     [  
> 4%]
> test/test_parse.py .......F.........F................................... [ 
> 65%]
> ............                                                             [ 
> 79%]
> test/test_serialize.py ....F........F....                                
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _ TestParse.test_parse_basic[<?xml version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>\u011b\u0161\u010d</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>-None-expected7]
>  _
> 
> self = <test.test_parse.TestParse object at 0x7f7ce8466230>
> str = '<?xml version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>ěšč</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>'
> fmt = None
> expected = OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), 
> ('baz', 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), 
> ('nothing', None)]))]))])
> 
>     @pytest.mark.parametrize(('str', 'fmt', 'expected'), [
>         ('', None, {}),
>         ('{}', None, {}),
>         ('[]', None, []),
>         (example_ini, None, example_as_dict),
>         (example_json, None, example_as_dict),
>         (example_json5, 'json5', example_as_dict),
>         (example_toml, 'toml', toml_example_as_dict),  # we can't tell toml 
> from ini
>         (example_xml, None, example_as_ordered_dict),
>         (example_yaml_map, None, example_as_dict),
>         (example_yaml_omap, None, example_as_ordered_dict),
>     ])
>     def test_parse_basic(self, str, fmt, expected):
>         parsed = parse(str, fmt)
>         assert parsed == expected
> >       assert type(parsed) == type(expected)
> E       AssertionError: assert <class 'dict'> == <class 
> 'collections.OrderedDict'>
> E        +  where <class 'dict'> = type({'foo': {'bar': 'ěšč', 'baz': 1.1, 
> 'blah': {'blahblah': [True, 'text4'], 'nothing': None}, 'spam': 1}})
> E        +  and   <class 'collections.OrderedDict'> = 
> type(OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), ('baz', 
> 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), ('nothing', 
> None)]))]))]))
> 
> test/test_parse.py:47: AssertionError
> _ TestParse.test_parse_basic_interpolation_is_false[<?xml version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>\u011b\u0161\u010d</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>-None-expected7]
>  _
> 
> self = <test.test_parse.TestParse object at 0x7f7ce8465b10>
> str = '<?xml version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>ěšč</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>'
> fmt = None
> expected = OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), 
> ('baz', 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), 
> ('nothing', None)]))]))])
> 
>     @pytest.mark.parametrize(('str', 'fmt', 'expected'), [
>         ('', None, {}),
>         ('{}', None, {}),
>         ('[]', None, []),
>         (example_ini, None, example_as_dict),
>         (example_json, None, example_as_dict),
>         (example_json5, 'json5', example_as_dict),
>         (example_toml, 'toml', toml_example_as_dict),  # we can't tell toml 
> from ini
>         (example_xml, None, example_as_ordered_dict),
>         (example_yaml_map, None, example_as_dict),
>         (example_yaml_omap, None, example_as_ordered_dict),
>     ])
>     def test_parse_basic_interpolation_is_false(self, str, fmt, expected):
>         parsed = parse(str, fmt, interpolate=False)
>         assert parsed == expected
> >       assert type(parsed) == type(expected)
> E       AssertionError: assert <class 'dict'> == <class 
> 'collections.OrderedDict'>
> E        +  where <class 'dict'> = type({'foo': {'bar': 'ěšč', 'baz': 1.1, 
> 'blah': {'blahblah': [True, 'text4'], 'nothing': None}, 'spam': 1}})
> E        +  and   <class 'collections.OrderedDict'> = 
> type(OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), ('baz', 
> 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), ('nothing', 
> None)]))]))]))
> 
> test/test_parse.py:65: AssertionError
> _______________ TestSerialize.test_serialize_basic[struct4-xml] 
> ________________
> 
> self = <test.test_serialize.TestSerialize object at 0x7f7ce8467e80>
> struct = OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), 
> ('baz', 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), 
> ('nothing', None)]))]))])
> format = 'xml'
> 
>     @pytest.mark.parametrize(('struct', 'format'), [
>         (example_as_dict, 'ini'),
>         (example_as_dict, 'json'),
>         (example_as_dict, 'json5'),
>         (toml_example_as_dict, 'toml'),
>         (example_as_ordered_dict, 'xml'),
>         (example_as_dict, 'yaml'),
>         (example_as_ordered_dict, 'yaml'),
>     ])
>     def test_serialize_basic(self, struct, format):
>         serialized = serialize(struct, format)
>         parsed_back = parse(serialized, format)
>         assert parsed_back == struct
> >       assert type(parsed_back) == type(struct)
> E       AssertionError: assert <class 'dict'> == <class 
> 'collections.OrderedDict'>
> E        +  where <class 'dict'> = type({'foo': {'bar': 'ěšč', 'baz': 1.1, 
> 'blah': {'blahblah': [True, 'text4'], 'nothing': None}, 'spam': 1}})
> E        +  and   <class 'collections.OrderedDict'> = 
> type(OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), ('baz', 
> 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), ('nothing', 
> None)]))]))]))
> 
> test/test_serialize.py:43: AssertionError
> ______ TestSerialize.test_serialize_file_basic[struct4-None-example.xml] 
> _______
> 
> self = <test.test_serialize.TestSerialize object at 0x7f7ce8239e70>
> struct = OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), 
> ('baz', 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), 
> ('nothing', None)]))]))])
> fmt = None, fname = 'example.xml'
> tmpdir = 
> local('/tmp/pytest-of-user42/pytest-1/test_serialize_file_basic_stru4')
> 
>     @pytest.mark.parametrize(('struct', 'fmt', 'fname'), [
>         (example_as_dict, None, 'example.ini'),
>         (example_as_dict, None, 'example.json'),
>         (example_as_dict, 'json5', 'example.json5'),
>         (toml_example_as_dict, 'toml', 'example.toml'),
>         (example_as_ordered_dict, None, 'example.xml'),
>         (example_as_dict, None, 'example.yaml'),
>         (example_as_ordered_dict, None, 'example_ordered.yaml'),
>     ])
>     def test_serialize_file_basic(self, struct, fmt, fname, tmpdir):
>         f = os.path.join(str(tmpdir), fname)
>         serialize_file(struct, f)
>         parsed_back = parse(self._read_decode(f), fmt)
>         assert parsed_back == struct
> >       assert type(parsed_back) == type(struct)
> E       AssertionError: assert <class 'dict'> == <class 
> 'collections.OrderedDict'>
> E        +  where <class 'dict'> = type({'foo': {'bar': 'ěšč', 'baz': 1.1, 
> 'blah': {'blahblah': [True, 'text4'], 'nothing': None}, 'spam': 1}})
> E        +  and   <class 'collections.OrderedDict'> = 
> type(OrderedDict([('foo', OrderedDict([('bar', 'ěšč'), ('spam', 1), ('baz', 
> 1.1), ('blah', OrderedDict([('blahblah', [True, 'text4']), ('nothing', 
> None)]))]))]))
> 
> test/test_serialize.py:72: AssertionError
> =========================== short test summary info 
> ============================
> FAILED test/test_parse.py::TestParse::test_parse_basic[<?xml version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>\u011b\u0161\u010d</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>-None-expected7]
> FAILED 
> test/test_parse.py::TestParse::test_parse_basic_interpolation_is_false[<?xml 
> version="1.0" 
> encoding="utf-8"?>\n<foo>\n\t<bar>\u011b\u0161\u010d</bar>\n\t<spam>1</spam>\n\t<baz>1.1</baz>\n\t<blah>\n\t\t<blahblah>true</blahblah>\n\t\t<blahblah>text4</blahblah>\n\t\t<nothing></nothing>\n\t</blah>\n</foo>-None-expected7]
> FAILED 
> test/test_serialize.py::TestSerialize::test_serialize_basic[struct4-xml]
> FAILED 
> test/test_serialize.py::TestSerialize::test_serialize_file_basic[struct4-None-example.xml]
> ========================= 4 failed, 83 passed in 0.36s 
> =========================
> E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_anymarkup-core/build; python3.10 -m 
> pytest test
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/anymarkup-core_0.8.1-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to