Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get InvalidStateError from asyncio directly #141

Merged
merged 1 commit into from May 2, 2019

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented May 2, 2019

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'

See also https://bugzilla.redhat.com/show_bug.cgi?id=1705459

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'

See also https://bugzilla.redhat.com/show_bug.cgi?id=1705459
@rohanpm rohanpm merged commit 9c1b129 into rohanpm:master May 2, 2019
@hroncok hroncok deleted the patch-1 branch May 2, 2019 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants