Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_unittest raises a DeprecationWarning #123087

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

Closed
Eclips4 opened this issue Aug 17, 2024 · 0 comments
Closed

test_unittest raises a DeprecationWarning #123087

Eclips4 opened this issue Aug 17, 2024 · 0 comments
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Aug 17, 2024

Bug report

Bug description:

eclips4@nixos ~/p/p/cpython (main) [SIGINT]> ./python -m test -q test_unittest
Using random seed: 315532800
0:00:00 load avg: 11.34 Run 1 test sequentially in a single process
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:234: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(spec))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:276: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock_method))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:749: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(iscoroutinefunction(instance.__aiter__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:750: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(iscoroutinefunction(mock_instance.__aiter__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:752: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(instance.__anext__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:753: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock_instance.__anext__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:609: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(m_mock.__aenter__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:610: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(m_mock.__aexit__))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:809: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock.async_method))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:173: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:178: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:191: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:124: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock_method))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:158: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(test_async))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:63: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock_method))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:433: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:438: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(iscoroutinefunction(mock.async_method))
/home/eclips4/programming/programming-languages/cpython/Lib/test/test_unittest/testmock/testasync.py:439: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(iscoroutinefunction(mock.normal_method))

== Tests result: SUCCESS ==

Total duration: 8.0 sec
Total tests: run=1,061 skipped=2
Total test files: run=1/1
Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@Eclips4 Eclips4 added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Aug 17, 2024
@Eclips4 Eclips4 self-assigned this Aug 17, 2024
sobolevn pushed a commit that referenced this issue Aug 17, 2024
…usage of the deprecated ``asyncio.iscoroutinefunction`` with the ``inspect.iscoroutinefunction`` (#123088)

asyncio.iscoroutinefunction -> inspect.iscoroutinefunction
jeremyhylton pushed a commit to jeremyhylton/cpython that referenced this issue Aug 19, 2024
…place usage of the deprecated ``asyncio.iscoroutinefunction`` with the ``inspect.iscoroutinefunction`` (python#123088)

asyncio.iscoroutinefunction -> inspect.iscoroutinefunction
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
…place usage of the deprecated ``asyncio.iscoroutinefunction`` with the ``inspect.iscoroutinefunction`` (python#123088)

asyncio.iscoroutinefunction -> inspect.iscoroutinefunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants