Source: python-html-sanitizer
Version: 1.9.3-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20220326 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:237: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> copying html_sanitizer/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> copying html_sanitizer/__main__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> copying html_sanitizer/tests.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> copying html_sanitizer/django.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> copying html_sanitizer/sanitizer.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer
> running egg_info
> creating html_sanitizer.egg-info
> writing html_sanitizer.egg-info/PKG-INFO
> writing dependency_links to html_sanitizer.egg-info/dependency_links.txt
> writing requirements to html_sanitizer.egg-info/requires.txt
> writing top-level names to html_sanitizer.egg-info/top_level.txt
> writing manifest file 'html_sanitizer.egg-info/SOURCES.txt'
> reading manifest file 'html_sanitizer.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'html_sanitizer.egg-info/SOURCES.txt'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; 
> python3.9 -m unittest discover -v 
> test_01_sanitize (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_02_a_tag (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_03_merge (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_04_p_in_li (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_05_p_in_p (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_06_allowlist (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_07_configuration (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_08_li_with_marker (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_09_empty_p_text_in_li (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_10_broken_html (html_sanitizer.tests.SanitizerTestCase) ... 
> test_11_nofollow (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_12_replacements (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_13_autolink (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_14_classes (html_sanitizer.tests.SanitizerTestCase)
> Class attributes should not be treated specially ... ok
> test_15_classes (html_sanitizer.tests.SanitizerTestCase)
> Class attributes may disable merging ... ok
> test_16_emoji (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_anchor_names (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_billion_laughs (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_blob (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_custom_allowed_attribute (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_data_attributes (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_keep_consecutive_br_tags (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_keep_typographic_whitespace (html_sanitizer.tests.SanitizerTestCase) ... 
> ok
> test_more_merging (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_remove_everything (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_strip_typographic_whitespace (html_sanitizer.tests.SanitizerTestCase) 
> ... ok
> test_style_tag (html_sanitizer.tests.SanitizerTestCase) ... ok
> test_target_blank (html_sanitizer.tests.SanitizerTestCase) ... ok
> 
> ======================================================================
> FAIL: test_10_broken_html (html_sanitizer.tests.SanitizerTestCase) 
> (before='<p><strong>bla<>/dsiad<p/', 
> after='<p><strong>bla&lt;&gt;/dsiad</strong></p>')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/html_sanitizer/tests.py", line 
> 15, in run_tests
>     self.assertEqual(
> AssertionError: '<p><strong>bla/dsiad</strong></p>' != 
> '<p><strong>bla&lt;&gt;/dsiad</strong></p>'
> - <p><strong>bla/dsiad</strong></p>
> + <p><strong>bla&lt;&gt;/dsiad</strong></p>
> ?               ++++++++
>  : Cleaning 'b'<p><strong>bla<>/dsiad<p/'', expected 
> 'b'<p><strong>bla&lt;&gt;/dsiad</strong></p>'' but got 
> 'b'<p><strong>bla/dsiad</strong></p>''
> 
> ----------------------------------------------------------------------
> Ran 28 tests in 0.032s
> 
> FAILED (failures=1)
> E: pybuild pybuild:367: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m unittest discover 
> -v 
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit 
> code 13


The full build log is available from:
http://qa-logs.debian.net/2022/03/26/python-html-sanitizer_1.9.3-1_unstable.log

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