From c68f9fb87868c45fcadcc942ce4a35f10ff2f7ea Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Sat, 18 Apr 2020 18:10:59 +0200 Subject: Enable pypy tests on github workflow Fixes: #5223 Change-Id: I0952e54ed9af2952ea340be1945311376ffc1ad2 --- lib/sqlalchemy/testing/plugin/pytestplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/testing/plugin/pytestplugin.py') diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index a4ace4e24..dfefd3b95 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -385,7 +385,7 @@ def %(name)s(%(args)s): code, {"target": target, "fn": fn}, fn.__name__ ) if not add_positional_parameters: - decorated.__defaults__ = getattr(fn, "im_func", fn).__defaults__ + decorated.__defaults__ = getattr(fn, "__func__", fn).__defaults__ decorated.__wrapped__ = fn return update_wrapper(decorated, fn) else: -- cgit v1.2.1