[Python-modules-team] Bug#910442: genshi FTBFS: tests fail: RuntimeError: generator raised StopIteration
Helmut Grohne
helmut at subdivi.de
Sat Oct 6 13:34:32 BST 2018
Source: genshi
Version: 0.7-6
Severity: serious
Tags: ftbfs
genshi fails to build from source in sbuild on unstable/amd64. A build
log ends with:
| ======================================================================
| FAIL: replace (genshi.filters.transform.Transformer)
| Doctest: genshi.filters.transform.Transformer.replace
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/usr/lib/python3.7/doctest.py", line 2198, in runTest
| raise self.failureException(self.format_failure(new.getvalue()))
| AssertionError: Failed doctest test for genshi.filters.transform.Transformer.replace
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/filters/transform.py", line 368, in replace
|
| ----------------------------------------------------------------------
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/filters/transform.py", line 374, in genshi.filters.transform.Transformer.replace
| Failed example:
| print((html | Transformer('.//title/text()').replace('New Title')))
| Exception raised:
| Traceback (most recent call last):
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/filters/transform.py", line 118, in __iter__
| event = next(self.stream)
| StopIteration
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/usr/lib/python3.7/doctest.py", line 1329, in __run
| compileflags, 1), test.globs)
| File "<doctest genshi.filters.transform.Transformer.replace[1]>", line 1, in <module>
| print((html | Transformer('.//title/text()').replace('New Title')))
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/core.py", line 248, in __str__
| return self.render()
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/core.py", line 184, in render
| return encode(generator, method=method, encoding=encoding, out=out)
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/output.py", line 57, in encode
| return _encode(''.join(list(iterator)))
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/output.py", line 241, in __call__
| for kind, data, pos in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/output.py", line 669, in __call__
| for kind, data, pos in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/output.py", line 774, in __call__
| for kind, data, pos in chain(stream, [(None, None, None)]):
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/output.py", line 594, in __call__
| for ev in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/core.py", line 289, in _ensure
| for event in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/core.py", line 289, in _ensure
| for event in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/filters/transform.py", line 706, in _unmark
| for mark, event in stream:
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_genshi/build/genshi/filters/transform.py", line 1076, in __call__
| for mark, event in stream:
| RuntimeError: generator raised StopIteration
|
|
| ----------------------------------------------------------------------
| Ran 861 tests in 0.443s
|
| FAILED (failures=8, errors=56, skipped=1)
| Test failed: <unittest.runner.TextTestResult run=861 errors=56 failures=8>
| error: Test failed: <unittest.runner.TextTestResult run=861 errors=56 failures=8>
| E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: python3.7 setup.py test
| dh_auto_test: pybuild --test -i python{version} -p "3.7 3.6" returned exit code 13
| make: *** [debian/rules:8: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Could it be that this is due to Python 3.7 having become a supported
Python version?
Helmut
More information about the Python-modules-team
mailing list