From cf1b025a53dc21e09327dfd28dcfb00befff30c1 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 16 Mar 2015 13:26:02 +0100 Subject: Initial travis support --- documentation3.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'documentation3.py') diff --git a/documentation3.py b/documentation3.py index c7be177..5be0cca 100644 --- a/documentation3.py +++ b/documentation3.py @@ -774,9 +774,8 @@ you will get a ``NameError``: def f(_func_): return _call_(_func_, _func_) -Finally, the implementation is such that the decorated function contains -a *copy* of the original function dictionary -(``vars(decorated_f) is not vars(f)``): +Finally, the implementation is such that the decorated function shares +the original function dictionary: .. code-block:: python @@ -789,8 +788,8 @@ a *copy* of the original function dictionary >>> traced_f.attr1 'something' >>> traced_f.attr2 = "something different" # setting attr - >>> f.attr2 # the original attribute did not change - 'something else' + >>> f.attr2 # the original attribute did change, works in Python 3.4 + 'something different' Compatibility notes --------------------------------------------------------------- @@ -1211,4 +1210,5 @@ def hello(user): if __name__ == '__main__': import doctest - doctest.testmod() + err = doctest.testmod()[0] + sys.exit(err) -- cgit v1.2.1