summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin
diff options
context:
space:
mode:
authorIryna Shcherbina <ishcherb@redhat.com>2017-09-26 08:32:12 +0200
committerGitHub <noreply@github.com>2017-09-26 08:32:12 +0200
commit8e002c87b343a4e7f103cc8aef922b0e63856d29 (patch)
treebb324a12f49aec94fe78f0634425adc40e9e434f /lib/sqlalchemy/testing/plugin
parent1b0b35f254f545dbeb3ad6e2215ba24ae1c02894 (diff)
downloadsqlalchemy-8e002c87b343a4e7f103cc8aef922b0e63856d29.tar.gz
Fix noseplugin to accept `zeroarg_callback` for `--dbs` option
./sqla_nose.py --dbs works fine with zero arguments, so `zeroarg_callback` should be treated as `callback`.
Diffstat (limited to 'lib/sqlalchemy/testing/plugin')
-rw-r--r--lib/sqlalchemy/testing/plugin/noseplugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py
index 2cf95d8d8..1dd6494d7 100644
--- a/lib/sqlalchemy/testing/plugin/noseplugin.py
+++ b/lib/sqlalchemy/testing/plugin/noseplugin.py
@@ -41,7 +41,7 @@ class NoseSQLAlchemy(Plugin):
opt = parser.add_option
def make_option(name, **kw):
- callback_ = kw.pop("callback", None)
+ callback_ = kw.pop("callback", None) or kw.pop("zeroarg_callback", None)
if callback_:
def wrap_(option, opt_str, value, parser):
callback_(opt_str, value, parser)