summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2021-04-05 06:32:54 +0200
committerMichele Simionato <michele.simionato@gmail.com>2021-04-05 06:32:54 +0200
commitfb8a321d672848852d7706b3c40156771e568084 (patch)
tree2b371dc793c7b0e5d2841c546964e2a6252f9f4f
parent23d5735cfdc4a9a6e620bd318966754c028a9dda (diff)
downloadpython-decorator-git-fb8a321d672848852d7706b3c40156771e568084.tar.gz
Tested docstring preservation5.0.6
-rw-r--r--src/tests/test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test.py b/src/tests/test.py
index 4743c23..ad45ca1 100644
--- a/src/tests/test.py
+++ b/src/tests/test.py
@@ -137,10 +137,12 @@ class ExtraTestCase(unittest.TestCase):
@example
def func(**kw):
+ "Docstring"
return kw
# there is no confusion when passing args as a keyword argument
self.assertEqual(func(args='a'), {'args': 'a'})
+ self.assertEqual(func.__doc__, "Docstring")
def test_decorator_factory(self):
# similar to what IPython is doing in traitlets.config.application