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

Advance fails with uvloop #135

Open
wa-dev opened this issue Jul 19, 2019 · 0 comments
Open

Advance fails with uvloop #135

wa-dev opened this issue Jul 19, 2019 · 0 comments

Comments

@wa-dev
Copy link

wa-dev commented Jul 19, 2019

I am using asynctest with python 3.7.3 and uvloop.

Have have several test that look similar to the following code.

    async def test_autoupdate(self):
        "Test that _update_state gets executes and ready works"

        queue = Q(update_interval=0.01)
        queue.start()
        await queue.ready()

        last_update = queue.last_update

        await self.advance(0.5)

        second_update = queue.last_update
        self.assertNotEqual(last_update, second_update)

In all of my test that use the advance method, I get the following exception

    def _next_scheduled(self):
        try:
>           return self.loop._scheduled[0]._when
E           AttributeError: 'Loop' object has no attribute '_scheduled'

.../lib/python3.7/site-packages/asynctest/case.py:482: AttributeError

All of my other async test work great. I just have issues with the ones that use advance.

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

No branches or pull requests

1 participant