diff options
author | Federico Caselli <cfederico87@gmail.com> | 2020-04-18 18:10:59 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2020-10-02 21:21:11 +0200 |
commit | c68f9fb87868c45fcadcc942ce4a35f10ff2f7ea (patch) | |
tree | d9056aebf73fd296afdce471b6cb9e7699eae345 /lib/sqlalchemy/testing/plugin/pytestplugin.py | |
parent | 7bb9ea911cb2e573696a91392a6a08161950ac9f (diff) | |
download | sqlalchemy-c68f9fb87868c45fcadcc942ce4a35f10ff2f7ea.tar.gz |
Enable pypy tests on github workflow
Fixes: #5223
Change-Id: I0952e54ed9af2952ea340be1945311376ffc1ad2
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/pytestplugin.py')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/pytestplugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |