[Python-modules-team] Bug#903523: jaraco.itertools FTBFS with Python 3.7 as supported version

Adrian Bunk bunk at debian.org
Tue Jul 10 22:44:36 BST 2018


Source: jaraco.itertools
Version: 2.0.1-1
Severity: serious
Tags: ftbfs

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/jaraco.itertools.html

...
I: pybuild base:217: cd /build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build; python3.7 -m pytest jaraco/
============================= test session starts ==============================
platform linux -- Python 3.7.0, pytest-3.6.2, py-1.5.3, pluggy-0.6.0
rootdir: /build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build, inifile: pytest.ini
collected 32 items

jaraco/itertools.py ..FF......FF.............F......                     [100%]

=================================== FAILURES ===================================
___________________ [doctest] jaraco.itertools.FetchingQueue ___________________
146 
147 	A FIFO Queue that is supplied with a function to inject more into
148 	the queue if it is empty.
149 
150 	>>> values = iter(range(10))
151 	>>> get_value = lambda: globals()['q'].enqueue(next(values))
152 	>>> q = FetchingQueue(get_value)
153 	>>> [x for x in q] == list(range(10))
UNEXPECTED EXCEPTION: RuntimeError('generator raised StopIteration')
Traceback (most recent call last):

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 175, in __iter__
    yield next(self)

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 169, in __next__
    self._fetcher()

  File "<doctest jaraco.itertools.FetchingQueue[1]>", line 1, in <lambda>

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 jaraco.itertools.FetchingQueue[3]>", line 1, in <module>

  File "<doctest jaraco.itertools.FetchingQueue[3]>", line 1, in <listcomp>

RuntimeError: generator raised StopIteration

/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py:153: UnexpectedException
___________________ [doctest] jaraco.itertools.GroupbySaved ____________________
073 	element in the sequence.
074 
075 	>>> truthsplit = GroupbySaved(['Test', '', 30, None], bool)
076 	>>> truthsplit['x']
077 	Traceback (most recent call last):
078 	...
079 	KeyError: 'x'
080 	>>> true_items = truthsplit[True]
081 	>>> false_items = truthsplit[False]
082 	>>> tuple(iter(false_items))
UNEXPECTED EXCEPTION: RuntimeError('generator raised StopIteration')
Traceback (most recent call last):

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 175, in __iter__
    yield next(self)

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 169, in __next__
    self._fetcher()

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 115, in __fetch__
    item = next(self.sequence)

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 jaraco.itertools.GroupbySaved[4]>", line 1, in <module>

RuntimeError: generator raised StopIteration

/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py:82: UnexpectedException
______________________ [doctest] jaraco.itertools.bisect _______________________
046 
047 	Split a sequence into two sequences:  the first is elements that
048 	return False for func(element) and the second for True for
049 	func(element).
050 	By default, func is ``bool``, so uses the truth value of the object.
051 
052 	>>> is_odd = lambda n: n%2
053 	>>> even, odd = bisect(range(5), is_odd)
054 	>>> list(odd)
UNEXPECTED EXCEPTION: RuntimeError('generator raised StopIteration')
Traceback (most recent call last):

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 175, in __iter__
    yield next(self)

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 169, in __next__
    self._fetcher()

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 115, in __fetch__
    item = next(self.sequence)

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 jaraco.itertools.bisect[2]>", line 1, in <module>

RuntimeError: generator raised StopIteration

/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py:54: UnexpectedException
____________________ [doctest] jaraco.itertools.every_other ____________________
551 
552 	Yield every other item from the iterable
553 
554 	>>> ' '.join(every_other('abcdefg'))
UNEXPECTED EXCEPTION: RuntimeError('generator raised StopIteration')
Traceback (most recent call last):

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 560, in every_other
    next(items)

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 jaraco.itertools.every_other[0]>", line 1, in <module>

RuntimeError: generator raised StopIteration

/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py:554: UnexpectedException
_________________ [doctest] jaraco.itertools.remove_duplicates _________________
563 
564 	Given an iterable with items that may come in as sequential duplicates,
565 	remove those duplicates.
566 
567 	Unlike unique_justseen, this function does not remove triplicates.
568 
569 	>>> ' '.join(remove_duplicates('abcaabbccaaabbbcccbcbc'))
UNEXPECTED EXCEPTION: RuntimeError('generator raised StopIteration')
Traceback (most recent call last):

  File "/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py", line 560, in every_other
    next(items)

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 jaraco.itertools.remove_duplicates[0]>", line 1, in <module>

RuntimeError: generator raised StopIteration

/build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build/jaraco/itertools.py:569: UnexpectedException
===================== 5 failed, 27 passed in 0.16 seconds ======================
E: pybuild pybuild:336: test: plugin distutils failed with: exit code=1: cd /build/1st/jaraco.itertools-2.0.1/.pybuild/cpython3_3.7_jaraco.itertools/build; python3.7 -m pytest jaraco/
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.7 3.6" returned exit code 13
make: *** [debian/rules:9: build] Error 13



More information about the Python-modules-team mailing list