Skip to content

Update mock.py#164

Open
adithjaison wants to merge 3 commits intoMartiusweb:masterfrom
adithjaison:patch-1
Open

Update mock.py#164
adithjaison wants to merge 3 commits intoMartiusweb:masterfrom
adithjaison:patch-1

Conversation

@adithjaison
Copy link
Copy Markdown

/usr/local/lib/python3.8/site-packages/asynctest/mock.py:434: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def wait(self, skip=0):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:448: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def wait_next(self, skip=0):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:468: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def wait_for(self, predicate):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:489: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _notify(self):

/usr/local/lib/python3.8/site-packages/asynctest/mock.py:434: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def wait(self, skip=0):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:448: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def wait_next(self, skip=0):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:468: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def wait_for(self, predicate):
/usr/local/lib/python3.8/site-packages/asynctest/mock.py:489: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _notify(self):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:357: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def doCleanups(self):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:381: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def assertAsyncRaises(self, exception, awaitable):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:392: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def assertAsyncRaisesRegex(self, exception, regex, awaitable):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:403: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def assertAsyncWarns(self, warning, awaitable):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:414: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def assertAsyncWarnsRegex(self, warning, regex, awaitable):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:445: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def advance(self, seconds):
/usr/local/lib/python3.8/site-packages/asynctest/case.py:487: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _drain_loop(self):
/usr/local/lib/python3.8/site-packages/asynctest/helpers.py:13: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def exhaust_callbacks(loop):
Comment thread asynctest/case.py

self._time = target_time
yield from self._drain_loop()
await self._drain_loop()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
await self._drain_loop()
await self._drain_loop()

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.

2 participants