Skip to content

Python 3.7 support #88

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

Merged
merged 2 commits into from
Jul 28, 2018
Merged

Python 3.7 support #88

merged 2 commits into from
Jul 28, 2018

Conversation

jonafato
Copy link
Contributor

@jonafato jonafato commented Jul 9, 2018

  • Enable tests and declare support for Python 3.7

  • Use async and await in all tests

  • Remove ProcessPoolExecutor support

    Remove the event_loop_process_pool fixture and the
    pytest.mark.asyncio_process_pool marker to address deprecation and
    removal detailed in https://bugs.python.org/issue34075.

Fixes #87.

Note: this change may be blocked by #87. The behavior of the
ProcessPoolExecutor tests is somewhat flaky in 3.7 and may cause the
test suite to hang.

Because this change is blocked by #87, I've rolled the fix into this PR.
I can split this up if desired.

- Enable tests and declare support for Python 3.7
- Use `async` and `await` in all tests

Note: this change may be blocked by pytest-dev#87. The behavior of the
`ProcessPoolExecutor` tests is somewhat flaky in 3.7 and may cause the
test suite to hang.
@jonafato
Copy link
Contributor Author

jonafato commented Jul 9, 2018

Per my note, https://travis-ci.org/pytest-dev/pytest-asyncio/jobs/401926629 is definitely hanging.

Remove the `event_loop_process_pool` fixture and the
`pytest.mark.asyncio_process_pool` marker to address deprecation and
removal detailed in https://bugs.python.org/issue34075.

Fixes pytest-dev#87.
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@discosultan
Copy link

Curious as to what the status is on this. Is there anything blocking that the community could chip in?

@Tinche
Copy link
Member

Tinche commented Jul 28, 2018

Thank you very much @jonafato !

@Tinche Tinche merged commit 3967dbf into pytest-dev:master Jul 28, 2018
@jonafato jonafato deleted the python-3.7 branch July 28, 2018 21:05
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.

Stop using ProcessPoolExecutor as a default event loop executor
4 participants