Source: django-assets
Version: 2.0-3
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/fetch.php?pkg=django-assets&arch=all&ver=2.0-3&stamp=1700432008&raw=0
...
dh_auto_test -i -O--buildsystem=pybuild
I: pybuild base:310: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build; python3.11 -m nose
-v tests
tests.test_django.TestConfig.test_custom_options ... ok
The builtin options have different names within the Django ... ok
tests.test_django.TestFilter.test_template ... ok
tests.test_django.TestLoader.test ... ERROR
tests.test_django.TestLoader.test_cached_loader ... ERROR
Finders are used to find source files. ... ok
If debug is disabled, the finders are not used. ... ok
Test that the cssrewrite filter can deal with staticfiles. ... ok
Globs can be used across staticdirs. ... ok
Recursive globs. ... ok
An error is raised if a source file is missing. ... ok
The files we write to STATIC_ROOT are served in debug mode ... ok
tests.test_django.TestTemplateTag.test_debug_option ... ok
Ensure the tag correcly spits out the urls the bundle returns. ... ok
tests.test_django.TestTemplateTag.test_reference_bundles ... ok
tests.test_django.TestTemplateTag.test_reference_files ... ok
tests.test_django.TestTemplateTag.test_reference_mixed ... ok
Using commas is optional. ... ok
tests.test_django.TestTemplateTag.test_with_vars ... ok
======================================================================
ERROR: tests.test_django.TestLoader.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/tests/test_django.py",
line 193, in test
bundles = self.loader.load_bundles()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/django_assets/loaders.py",
line 79, in load_bundles
bundles.extend(self.with_file(filename, self._parse) or [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/webassets/loaders.py", line 333, in
with_file
return then_run(filename, contents)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/django_assets/loaders.py",
line 110, in _parse
for node in t: # don't move into _recurse_node, ``Template`` has a
.nodelist attribute
File "/usr/lib/python3/dist-packages/django/template/base.py", line 158, in
__iter__
yield from node
TypeError: 'TextNode' object is not iterable
======================================================================
ERROR: tests.test_django.TestLoader.test_cached_loader
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/tests/test_django.py",
line 203, in test_cached_loader
bundles = self.loader.load_bundles()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/django_assets/loaders.py",
line 79, in load_bundles
bundles.extend(self.with_file(filename, self._parse) or [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/webassets/loaders.py", line 333, in
with_file
return then_run(filename, contents)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-assets/build/django_assets/loaders.py",
line 110, in _parse
for node in t: # don't move into _recurse_node, ``Template`` has a
.nodelist attribute
File "/usr/lib/python3/dist-packages/django/template/base.py", line 158, in
__iter__
yield from node
TypeError: 'TextNode' object is not iterable
----------------------------------------------------------------------
Ran 19 tests in 0.113s
FAILED (errors=2)