Bug 1705459

Summary: python-more-executors FTBFS with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-more-executorsAssignee: Rohan McGovern <rohan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: rohan
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: 2019-05-03 04:09:10 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: 1686977    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-05-02 10:52:09 UTC
Created attachment 1561528 [details]
Full log from Copr

When I rebuild python-more-executors 2.0.1-2.fc31 with Python 3.8, I get:

=================================== FAILURES ===================================
___________________________________ test_run ___________________________________

asyncio = <module 'asyncio' from '/usr/lib64/python3.8/asyncio/__init__.py'>

    def test_run(asyncio):
        with AsyncioExecutor(Executors.thread_pool()) as executor:
            f = executor.submit(sleep_then_return, 0.01, 'abc')
    
            # The result should not be available yet
>           assert_that(calling(f.result), raises(asyncio.futures.InvalidStateError))
E           AttributeError: module 'asyncio.futures' has no attribute 'InvalidStateError'

tests/test_asyncio.py:30: AttributeError
============== 1 failed, 1627 passed, 8 skipped in 70.50 seconds ===============


Apparently, this exception is available from asyncio, not asyncio.futures (that was merely a leaking import):

    $ python3.7 -c 'import asyncio; asyncio.futures.InvalidStateError'
    $ python3.8 -c 'import asyncio; asyncio.futures.InvalidStateError'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    AttributeError: module 'asyncio.futures' has no attribute 'InvalidStateError'


    $ python3.8 -c 'import asyncio; asyncio.InvalidStateError'
    $ python3.7 -c 'import asyncio; asyncio.InvalidStateError'
    $ python3.6 -c 'import asyncio; asyncio.InvalidStateError'
    $ python3.5 -c 'import asyncio; asyncio.InvalidStateError'
    $ python3.4 -c 'import asyncio; asyncio.InvalidStateError'

Full log attached.

Comment 1 Miro Hrončok 2019-05-02 10:53:57 UTC
https://github.com/rohanpm/more-executors/pull/141

Comment 2 Rohan McGovern 2019-05-03 04:09:10 UTC
Fixed in rawhide: python-more-executors-2.0.2-1.fc31

Comment 3 Miro Hrončok 2019-05-03 08:25:44 UTC
Thank You!