Guest User

Full Error Traceback

a guest
Mar 24th, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. ============================================================================================================ FAILURES =============================================================================================================
  2. _______________________________________________________________________________ TestOAuthCredentialsStrategy.test_acquire_handles_out_of_date_token _______________________________________________________________________________
  3.  
  4. 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
  5. gs, **kwargs)\n'),)
  6. kwargs = {}
  7. 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>
  8.  
  9. def warn(*args, **kwargs):
  10. frame = inspect.currentframe().f_back
  11.  
  12. if frame.f_globals.get("__name__") == "hikari.internal.deprecation" and frame.f_code.co_name == "warn_deprecated":
  13. # Ignore this specific DeprecationWarning
  14. with warnings.catch_warnings():
  15. warnings.simplefilter("ignore", DeprecationWarning)
  16. _warn(*args, **kwargs)
  17.  
  18. else:
  19. > _warn(*args, **kwargs)
  20. E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <coroutine object AsyncMockMixin._execute_mock_call at 0x00000267A82C7A70>
  21. E
  22. E Traceback (most recent call last):
  23. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\warnings.py", line 506, in _warn_unawaited_coroutine
  24. E warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
  25. E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\tests\hikari\__init__.py", line 79, in warn
  26. E _warn(*args, **kwargs)
  27. E RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
  28. E Coroutine created at (most recent call last)
  29. E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\pytest_asyncio\plugin.py", line 525, in inner
  30. E _loop.run_until_complete(task)
  31. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
  32. E self.run_forever()
  33. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
  34. E super().run_forever()
  35. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
  36. E self._run_once()
  37. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1888, in _run_once
  38. E handle._run()
  39. E File "C:\Users\eellertson\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
  40. E self._context.run(self._callback, *self._args)
  41. 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
  42. E new_token = await strategy.acquire(mock_rest)
  43. E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\hikari\impl\rest.py", line 323, in acquire
  44. E self._expire_at = time.monotonic() + math.floor(response.expires_in.total_seconds() * 0.99)
  45. E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\mock\mock.py", line 1143, in __call__
  46. E return _mock_self._mock_call(*args, **kwargs)
  47. E File "C:\Users\eellertson\Documents\Github Projects\hikari\hikari\.nox\pytest\lib\site-packages\mock\mock.py", line 1147, in _mock_call
  48. E return _mock_self._execute_mock_call(*args, **kwargs)
  49.  
  50. 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
  51. ll(*args, **kwargs)\n'),)
  52. 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
  53. ook>
  54. kwargs = {}
  55.  
  56. tests\hikari\__init__.py:79: PytestUnraisableExceptionWarning
Advertisement
Add Comment
Please, Sign In to add comment