From e8a5ed9c1cbc5e9f0aebffad5ea78abb16167778 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Wed, 28 Oct 2015 18:52:06 -0600 Subject: Update usages of getargspec to compat version. The places inspect.getargspec was being used were causing problems for newer Python versions. --- test/orm/test_session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/orm/test_session.py b/test/orm/test_session.py index f6ddcb566..caeb08530 100644 --- a/test/orm/test_session.py +++ b/test/orm/test_session.py @@ -17,6 +17,7 @@ from sqlalchemy.util import pypy from sqlalchemy.testing import fixtures from test.orm import _fixtures from sqlalchemy import event, ForeignKey +from sqlalchemy.util.compat import inspect_getargspec class ExecutionTest(_fixtures.FixtureTest): @@ -1483,7 +1484,7 @@ class SessionInterface(fixtures.TestBase): for meth in Session.public_methods: if meth in blacklist: continue - spec = inspect.getargspec(getattr(Session, meth)) + spec = inspect_getargspec(getattr(Session, meth)) if len(spec[0]) > 1 or spec[1]: ok.add(meth) return ok -- cgit v1.2.1