summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/test.py b/src/tests/test.py
index 7eb8391..e5f2ff4 100644
--- a/src/tests/test.py
+++ b/src/tests/test.py
@@ -119,6 +119,12 @@ class ExtraTestCase(unittest.TestCase):
# there is no confusion when passing args as a keyword argument
self.assertEqual(func(args='a'), {'args': 'a'})
+ def test_decorator_factory(self):
+ # similar to what IPython is doing in traitlets.config.application
+ @decorator
+ def catch_config_error(method, app, *args, **kwargs):
+ return method(app)
+ catch_config_error(lambda app: None)
# ################### test dispatch_on ############################# #
# adapted from test_functools in Python 3.5