Skip to content
New issue

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

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

Already on GitHub? # to your account

Switch pytest-asyncio #14

Merged
merged 1 commit into from
Jan 15, 2017
Merged

Switch pytest-asyncio #14

merged 1 commit into from
Jan 15, 2017

Conversation

ticosax
Copy link
Contributor

@ticosax ticosax commented Jan 15, 2017

No description provided.

@codecov-io
Copy link

codecov-io commented Jan 15, 2017

Current coverage is 97.43% (diff: 100%)

Merging #14 into master will not change coverage

@@             master        #14   diff @@
==========================================
  Files             1          1          
  Lines            78         78          
  Methods           0          0          
  Messages          0          0          
  Branches         13         13          
==========================================
  Hits             76         76          
  Misses            1          1          
  Partials          1          1          

Powered by Codecov. Last update 8ef1556...f434545

flake8==3.2.1
ipdb==0.10.1
pytest==3.0.5
pytest-cov==2.4.0
Copy link
Member

Choose a reason for hiding this comment

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

Please leave it as it is, I added pyup (https://pyup.io/) bot to this repo we will have automatic PR with dependency update, see example here aio-libs/aiomonitor#10 Other aio-libs do the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@@ -6,8 +6,8 @@
from aiohttp_sse import EventSourceResponse


@pytest.mark.run_loop
def test_func(loop, unused_port):
@pytest.mark.asyncio
Copy link
Member

Choose a reason for hiding this comment

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

Should we use pytest.mark.asyncio(forbid_global_loop=True) instead? Previous implementation had asyncio.set_event_loop(None) so we can get handy error if loop is not passed explicitly somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

@jettify
Copy link
Member

jettify commented Jan 15, 2017

I believe loop issue should be resolved, other then that LGTM

And cleanup pending tasks before exiting tests
@ticosax
Copy link
Contributor Author

ticosax commented Jan 15, 2017

@jettify thx for the review. That was fast

@jettify
Copy link
Member

jettify commented Jan 15, 2017

Please merge PR, I believe you have access rights

@ticosax
Copy link
Contributor Author

ticosax commented Jan 15, 2017

I can't.

@ticosax
Copy link
Contributor Author

ticosax commented Jan 15, 2017

I do belong to the team aiohttp-sse-admins. But it seems this group doesn't have write access.

@ticosax
Copy link
Contributor Author

ticosax commented Jan 15, 2017

it does... weird

@ticosax ticosax merged commit cd0443b into aio-libs:master Jan 15, 2017
@ticosax
Copy link
Contributor Author

ticosax commented Jan 15, 2017

alright this is sorted out.

@ticosax ticosax deleted the pytest-asyncio branch January 15, 2017 14:49
@jettify
Copy link
Member

jettify commented Jan 15, 2017

@ticosax Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants