Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ============================================================================================================ FAILURES =============================================================================================================
- _______________________________________________________________________________ TestOAuthCredentialsStrategy.test_acquire_handles_out_of_date_token _______________________________________________________________________________
- args = (PytestUnraisableExceptionWarning('Exception ignored in: <coroutine object AsyncMockMixin._execute_mock_call at 0x0000...ite-packages\\mock\\mock.py", line 1147, in _mock_call\n return _mock_self._execute_mock_call(*ar
- gs, **kwargs)\n'),)
- kwargs = {}
- frame = <frame at 0x00000267A5B9F870, file 'C:\\Users\\eellertson\\Documents\\Github Projects\\hikari\\hikari\\.nox\\pytest\\lib\\site-packages\\_pytest\\unraisableexception.py', line 78, code unraisable_exception_runtest_hook>
- def warn(*args, **kwargs):
- frame = inspect.currentframe().f_back
- if frame.f_globals.get("__name__") == "hikari.internal.deprecation" and frame.f_code.co_name == "warn_deprecated":
- # Ignore this specific DeprecationWarning
- with warnings.catch_warnings():
- warnings.simplefilter("ignore", DeprecationWarning)
- _warn(*args, **kwargs)
- else:
- > _warn(*args, **kwargs)
- E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <coroutine object AsyncMockMixin._execute_mock_call at 0x00000267A82C7A70>
- E
- E Traceback (most recent call last):
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\warnings.py", line 506, in _warn_unawaited_coroutine
- E warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\tests\hikari\__init__.py", line 79, in warn
- E _warn(*args, **kwargs)
- E RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
- E Coroutine created at (most recent call last)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\pytest_asyncio\plugin.py", line 525, in inner
- E _loop.run_until_complete(task)
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
- E self.run_forever()
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
- E super().run_forever()
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
- E self._run_once()
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1888, in _run_once
- E handle._run()
- E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
- E self._context.run(self._callback, *self._args)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\tests\hikari\impl\test_rest.py", line 357, in test_acquire_handles_out_of_date_token
- E new_token = await strategy.acquire(mock_rest)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\hikari\impl\rest.py", line 323, in acquire
- E self._expire_at = time.monotonic() + math.floor(response.expires_in.total_seconds() * 0.99)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\mock\mock.py", line 1143, in __call__
- E return _mock_self._mock_call(*args, **kwargs)
- E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\mock\mock.py", line 1147, in _mock_call
- E return _mock_self._execute_mock_call(*args, **kwargs)
- args = (PytestUnraisableExceptionWarning('Exception ignored in: <coroutine object AsyncMockMixin._execute_mock_call at 0x0000...ite-packages\\mock\\mock.py", line 1147, in _mock_call\n return _mock_self._execute_mock_ca
- ll(*args, **kwargs)\n'),)
- frame = <frame at 0x00000267A5B9F870, file 'C:\\Users\\eellertson\\Documents\\Github Projects\\hikari\\hikari\\.nox\\pytest\\lib\\site-packages\\_pytest\\unraisableexception.py', line 78, code unraisable_exception_runtest_h
- ook>
- kwargs = {}
- tests\hikari\__init__.py:79: PytestUnraisableExceptionWarning
Advertisement
Add Comment
Please, Sign In to add comment