summaryrefslogtreecommitdiff
path: root/documentation3.py
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2011-04-11 11:35:44 +0200
committerMichele Simionato <michele.simionato@gmail.com>2011-04-11 11:35:44 +0200
commitac2233896698b9d2b7d41ff0fcf47d4cb378df5a (patch)
tree84612d41e5a36e4732eb497e4000dc1ea1ea4ac0 /documentation3.py
parent4c059c2020d7643645e82ccc3da729c93512c8c2 (diff)
parent4663c0ebf270687fa922f226d3847e6f82413df1 (diff)
downloadpython-decorator-git-ac2233896698b9d2b7d41ff0fcf47d4cb378df5a.tar.gz
Merged devel into default for release 0.8.1 of plac
Diffstat (limited to 'documentation3.py')
-rw-r--r--documentation3.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation3.py b/documentation3.py
index c737267..d45d065 100644
--- a/documentation3.py
+++ b/documentation3.py
@@ -670,7 +670,7 @@ function is decorated the traceback will be longer:
.. code-block:: python
- >>> f()
+ >>> f() # doctest: +ELLIPSIS
Traceback (most recent call last):
...
File "<string>", line 2, in f
@@ -678,7 +678,7 @@ function is decorated the traceback will be longer:
return f(*args, **kw)
File "<doctest __main__[51]>", line 3, in f
1/0
- ZeroDivisionError: int division or modulo by zero
+ ZeroDivisionError: ...
You see here the inner call to the decorator ``trace``, which calls
``f(*args, **kw)``, and a reference to ``File "<string>", line 2, in f``.