ImageImage

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_inspect generates DeprecationWarning
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, pablogsal, xtreak
Priority: normal Keywords: patch

Created on 2019-05-30 11:24 by xtreak, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13679 merged xtreak, 2019-05-30 11:30
Messages (2)
msg343971 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-05-30 11:24
In PR 13245 getfullargspec was undeprecated. But functions like getargspec and formatargspec still have deprecation warnings in code. As part of the PR code to ignore these warnings in test were also removed though the actual warning remains in Lib/inspect.py . This generates below warnings.

./python.exe -Wall -m test test_inspect
Run tests sequentially
0:00:00 load avg: 3.05 [1/1] test_inspect
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:759: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:753: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  args, varargs, varkw, defaults = inspect.getargspec(routine)
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_inspect.py:777: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1 sec 662 ms
Tests result: SUCCESS
msg343972 - (view) Author: miss-islington (miss-islington) Date: 2019-05-30 12:01
New changeset 6d0b7470a4738a403ef48cfd50d9447e0f32f00c by Miss Islington (bot) (Xtreak) in branch 'master':
bpo-37099: Silence DeprecationWarning in test_inspect (GH-13679)
https://github.com/python/cpython/commit/6d0b7470a4738a403ef48cfd50d9447e0f32f00c
History
Date User Action Args
2022-04-11 14:59:15adminsetgithub: 81280
2019-05-30 12:58:13xtreaksetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-30 12:01:42miss-islingtonsetnosy: + miss-islington
messages: + msg343972
2019-05-30 11:30:53xtreaksetkeywords: + patch
stage: patch review
pull_requests: + pull_request13567
2019-05-30 11:24:20xtreakcreate