Source: python-django-crispy-forms
Version: 1.14.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom \
> PYTHONPATH=. DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings py.test 
> crispy_forms/tests --cov=crispy_forms
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> django: settings: crispy_forms.tests.test_settings (from env)
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: cov-4.1.0, django-4.5.2
> collected 624 items
> 
> crispy_forms/tests/test_dynamic_api.py ................................. [  
> 5%]
> ............................................................sss          [ 
> 15%]
> crispy_forms/tests/test_form_helper.py ................................. [ 
> 20%]
> ........................................................................ [ 
> 32%]
> ................................sss.sssss.ssss.s...ss.ssss.s...ss.sss.ss [ 
> 43%]
> ss.sss.sss.sss.....ss.sss.s                                              [ 
> 48%]
> crispy_forms/tests/test_layout.py ....................................ss [ 
> 54%]
> s..................................sss.ssss.FFsss.sss.ssssss..ss.ssss... [ 
> 65%]
> ..sss.sss.sss.                                                           [ 
> 67%]
> crispy_forms/tests/test_layout_objects.py ............................s. [ 
> 72%]
> ..s...sss.sss.sss.s...s...s...s...s...s...s...s...s...s...s...s...sss.s. [ 
> 84%]
> ..ss.sss.ssss.sss.                                                       [ 
> 87%]
> crispy_forms/tests/test_tags.py ........................................ [ 
> 93%]
> ....s...                                                                 [ 
> 94%]
> crispy_forms/tests/test_utils.py ....................sss.........        
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _________________ test_keepcontext_context_manager[bootstrap3] 
> _________________
> 
> settings = <pytest_django.fixtures.SettingsWrapper object at 0x7fb852c04c10>
> 
>     @only_bootstrap
>     def test_keepcontext_context_manager(settings):
>         # Test case for issue #180
>         # Apparently it only manifest when using render_to_response this 
> exact way
>         form = CheckboxesSampleForm()
>         form.helper = FormHelper()
>         # We use here InlineCheckboxes as it updates context in an unsafe way
>         form.helper.layout = Layout("checkboxes", 
> InlineCheckboxes("alphacheckboxes"), "numeric_multiple_checkboxes")
>         context = {"form": form}
>     
>         response = render(request=None, 
> template_name="crispy_render_template.html", context=context)
>     
>         if settings.CRISPY_TEMPLATE_PACK == "bootstrap":
>             assert response.content.count(b"checkbox inline") == 3
>         elif settings.CRISPY_TEMPLATE_PACK == "bootstrap3":
> >           assert response.content.count(b"checkbox-inline") == 3
> E           assert 0 == 3
> E            +  where 0 = <built-in method count of bytes object at 
> 0x2d267f0>(b'checkbox-inline')
> E            +    where <built-in method count of bytes object at 0x2d267f0> 
> = b'\n\n\n\n<form  method="post" > <div id="div_id_checkboxes" 
> class="control-group"> <label for="" class="control-label...checkboxes" 
> id="id_numeric_multiple_checkboxes_2" value="3"  >Option three\n        
> </label> </div> </div> </form>\n\n'.count
> E            +      where b'\n\n\n\n<form  method="post" > <div 
> id="div_id_checkboxes" class="control-group"> <label for="" 
> class="control-label...checkboxes" id="id_numeric_multiple_checkboxes_2" 
> value="3"  >Option three\n        </label> </div> </div> </form>\n\n' = 
> <HttpResponse status_code=200, "text/html; charset=utf-8">.content
> 
> crispy_forms/tests/test_layout.py:579: AssertionError
> _________________ test_keepcontext_context_manager[bootstrap4] 
> _________________
> 
> settings = <pytest_django.fixtures.SettingsWrapper object at 0x7fb852c16890>
> 
>     @only_bootstrap
>     def test_keepcontext_context_manager(settings):
>         # Test case for issue #180
>         # Apparently it only manifest when using render_to_response this 
> exact way
>         form = CheckboxesSampleForm()
>         form.helper = FormHelper()
>         # We use here InlineCheckboxes as it updates context in an unsafe way
>         form.helper.layout = Layout("checkboxes", 
> InlineCheckboxes("alphacheckboxes"), "numeric_multiple_checkboxes")
>         context = {"form": form}
>     
>         response = render(request=None, 
> template_name="crispy_render_template.html", context=context)
>     
>         if settings.CRISPY_TEMPLATE_PACK == "bootstrap":
>             assert response.content.count(b"checkbox inline") == 3
>         elif settings.CRISPY_TEMPLATE_PACK == "bootstrap3":
>             assert response.content.count(b"checkbox-inline") == 3
>         elif settings.CRISPY_TEMPLATE_PACK == "bootstrap4":
> >           assert response.content.count(b"custom-control-inline") == 3
> E           assert 0 == 3
> E            +  where 0 = <built-in method count of bytes object at 
> 0x243da00>(b'custom-control-inline')
> E            +    where <built-in method count of bytes object at 0x243da00> 
> = b'\n\n\n\n<form  method="post" > <div id="div_id_checkboxes" 
> class="control-group"> <label for="" class="control-label...checkboxes" 
> id="id_numeric_multiple_checkboxes_2" value="3"  >Option three\n        
> </label> </div> </div> </form>\n\n'.count
> E            +      where b'\n\n\n\n<form  method="post" > <div 
> id="div_id_checkboxes" class="control-group"> <label for="" 
> class="control-label...checkboxes" id="id_numeric_multiple_checkboxes_2" 
> value="3"  >Option three\n        </label> </div> </div> </form>\n\n' = 
> <HttpResponse status_code=200, "text/html; charset=utf-8">.content
> 
> crispy_forms/tests/test_layout.py:581: AssertionError
> 
> ---------- coverage: platform linux, python 3.11.5-final-0 -----------
> Name                                                Stmts   Miss Branch 
> BrPart  Cover
> -------------------------------------------------------------------------------------
> crispy_forms/__init__.py                                1      0      0      
> 0   100%
> crispy_forms/base.py                                   10      0      4      
> 1    93%
> crispy_forms/bootstrap.py                             202     14     46      
> 3    92%
> crispy_forms/exceptions.py                              6      0      0      
> 0   100%
> crispy_forms/helper.py                                190      7     94      
> 4    95%
> crispy_forms/layout.py                                186      3     45      
> 4    97%
> crispy_forms/layout_slice.py                           80      4     50      
> 5    90%
> crispy_forms/templatetags/__init__.py                   0      0      0      
> 0   100%
> crispy_forms/templatetags/crispy_forms_field.py        90      3     48      
> 2    96%
> crispy_forms/templatetags/crispy_forms_filters.py      59      3     24      
> 3    93%
> crispy_forms/templatetags/crispy_forms_tags.py        118      0     42      
> 3    98%
> crispy_forms/templatetags/crispy_forms_utils.py        19      0      4      
> 0   100%
> crispy_forms/tests/__init__.py                          0      0      0      
> 0   100%
> crispy_forms/tests/conftest.py                         18      0      8      
> 0   100%
> crispy_forms/tests/forms.py                            95      0      2      
> 0   100%
> crispy_forms/tests/test_dynamic_api.py                242      0     10      
> 0   100%
> crispy_forms/tests/test_form_helper.py                578      1     68      
> 2    99%
> crispy_forms/tests/test_layout.py                     366      1     54      
> 1    99%
> crispy_forms/tests/test_layout_objects.py             334      0     70      
> 5    99%
> crispy_forms/tests/test_settings.py                    13      0      0      
> 0   100%
> crispy_forms/tests/test_tags.py                       118      1     16      
> 2    98%
> crispy_forms/tests/test_utils.py                      113      0      4      
> 0   100%
> crispy_forms/tests/urls.py                              3      0      0      
> 0   100%
> crispy_forms/tests/utils.py                            22      0     12      
> 0   100%
> crispy_forms/utils.py                                  86      3     50      
> 3    96%
> -------------------------------------------------------------------------------------
> TOTAL                                                2949     40    651     
> 38    98%
> 
> =========================== short test summary info 
> ============================
> FAILED 
> crispy_forms/tests/test_layout.py::test_keepcontext_context_manager[bootstrap3]
> FAILED 
> crispy_forms/tests/test_layout.py::test_keepcontext_context_manager[bootstrap4]
> ================== 2 failed, 495 passed, 127 skipped in 5.88s 
> ==================
> make[1]: *** [debian/rules:17: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-django-crispy-forms_1.14.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&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 mark 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