From cbc46b5c31e82cdf06336f8aa96527bb0b33dfd2 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 16 Mar 2015 15:26:20 +0100 Subject: Added a script test.py working both with Python 2 and 3 --- documentation.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'documentation.py') diff --git a/documentation.py b/documentation.py index 0aab054..4825fa8 100644 --- a/documentation.py +++ b/documentation.py @@ -1043,7 +1043,7 @@ class Action(object): """ >>> a = Action() >>> a.view() # ok - >>> a.insert() # err + >>> a.insert() # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... PermissionError: User does not have the permission to run insert! @@ -1146,8 +1146,3 @@ def hello(user): AFTER """ print('hello %s' % user) - -if __name__ == '__main__': - import doctest - err = doctest.testmod()[0] - sys.exit(err) -- cgit v1.2.1