diff options
| author | Jacob MacDonald <jaccarmac@gmail.com> | 2015-10-28 18:52:06 -0600 |
|---|---|---|
| committer | Jacob MacDonald <jaccarmac@gmail.com> | 2015-10-29 12:09:15 -0600 |
| commit | e8a5ed9c1cbc5e9f0aebffad5ea78abb16167778 (patch) | |
| tree | e52d3a0616e79a57ec4bd42244db3401007f41eb /test | |
| parent | 98c1dcc6bcade313a254fe11e8efa3c5b5ad959e (diff) | |
| download | sqlalchemy-pr/210.tar.gz | |
Update usages of getargspec to compat version.pr/210
The places inspect.getargspec was being used were causing problems for
newer Python versions.
Diffstat (limited to 'test')
| -rw-r--r-- | test/orm/test_session.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
