summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-22 15:38:38 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-22 15:38:38 (GMT)
commit3cfec2e2fcab9f39121cec362b78ac235093ca1c (patch)
tree5e95f36871c6ff1557a76b968210de346de9213e /Lib/test/test_inspect.py
parent8d006e75e02dadf4af4d69cc6e0d846b0e29e154 (diff)
downloadcpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.zip
cpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.tar.gz
cpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.tar.bz2
Issue 20438: Deprecate inspect.getargspec() and friends.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 44405ee..9492cad 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -631,7 +631,8 @@ class TestClassesAndFunctions(unittest.TestCase):
def assertArgSpecEquals(self, routine, args_e, varargs_e=None,
varkw_e=None, defaults_e=None, formatted=None):
- args, varargs, varkw, defaults = inspect.getargspec(routine)
+ with self.assertWarns(DeprecationWarning):
+ args, varargs, varkw, defaults = inspect.getargspec(routine)
self.assertEqual(args, args_e)
self.assertEqual(varargs, varargs_e)
self.assertEqual(varkw, varkw_e)