Skip to content

test_unittest raises a DeprecationWarning #123087

Closed
@Eclips4

Description

@Eclips4

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

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions