Bug 1581210

Summary: python-more-itertools FTBFS with Python 3.7
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-more-itertoolsAssignee: Ranjan Maitra <itsme_410>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: itsme_410
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-04 13:07:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1565020    
Attachments:
Description Flags
build.log from copr
none
root.log from copr none

Description Miro Hrončok 2018-05-22 11:23:57 UTC
Created attachment 1439988 [details]
build.log from copr

Description of problem: python-more-itertools cannot build with Python 3.7. This is blocking pytest and hence the entire Python 3.7 rebuild.


Version-Release number of selected component: python-more-itertools


How reproducible: Build on Python 3.7


======================================================================
ERROR: test_basic (more_itertools.tests.test_more.BucketTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 725, in _get_values
    item = next(self._it)
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/tests/test_more.py", line 588, in test_basic
    self.assertEqual(list(D[10]), [10, 11, 12])
RuntimeError: generator raised StopIteration
======================================================================
ERROR: test_in (more_itertools.tests.test_more.BucketTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 725, in _get_values
    item = next(self._it)
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/tests/test_more.py", line 601, in test_in
    self.assertFalse(40 in D)
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 702, in __contains__
    item = next(self[value])
RuntimeError: generator raised StopIteration
======================================================================
FAIL: bucket (more_itertools.more)
Doctest: more_itertools.more.bucket
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.7/doctest.py", line 2198, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for more_itertools.more.bucket
  File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 658, in bucket
----------------------------------------------------------------------
File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 669, in more_itertools.more.bucket
Failed example:
    list(s['b'])
Exception raised:
    Traceback (most recent call last):
      File "/builddir/build/BUILD/more-itertools-4.1.0/more_itertools/more.py", line 725, in _get_values
        item = next(self._it)
    StopIteration
    The above exception was the direct cause of the following exception:
    Traceback (most recent call last):
      File "/usr/lib64/python3.7/doctest.py", line 1329, in __run
        compileflags, 1), test.globs)
      File "<doctest more_itertools.more.bucket[5]>", line 1, in <module>
        list(s['b'])
    RuntimeError: generator raised StopIteration
----------------------------------------------------------------------
Ran 314 tests in 0.251s
FAILED (failures=1, errors=2)

Comment 1 Miro Hrončok 2018-05-22 11:24:17 UTC
Created attachment 1439989 [details]
root.log from copr

Comment 4 Miro Hrončok 2018-05-28 22:27:00 UTC
Ranjan?

Comment 5 Miro Hrončok 2018-06-04 13:07:13 UTC
Merged.

Comment 6 Red Hat Bugzilla 2023-09-14 04:28:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days