Bug 1705459 - python-more-executors FTBFS with Python 3.8
Summary: python-more-executors FTBFS with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-more-executors
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rohan McGovern
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-05-02 10:52 UTC by Miro Hrončok
Modified: 2019-05-03 08:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-03 04:09:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full log from Copr (230.47 KB, text/plain)
2019-05-02 10:52 UTC, Miro Hrončok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github rohanpm more-executors pull 141 0 None None None 2019-05-02 10:53:56 UTC

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!


Note You need to log in before you can comment on or make changes to this bug.