summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-viewcode/spam/mod2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-ext-viewcode/spam/mod2.py')
-rw-r--r--tests/roots/test-ext-viewcode/spam/mod2.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/roots/test-ext-viewcode/spam/mod2.py b/tests/roots/test-ext-viewcode/spam/mod2.py
new file mode 100644
index 0000000..92d1961
--- /dev/null
+++ b/tests/roots/test-ext-viewcode/spam/mod2.py
@@ -0,0 +1,22 @@
+"""
+mod2
+"""
+
+
+def decorator(f):
+ return f
+
+
+@decorator
+def func2(a, b):
+ """
+ this is func2
+ """
+ return a, b
+
+
+@decorator
+class Class2(object):
+ """
+ this is Class2
+ """