From bdf2692ca23347f1bdc54017b7f4e106dfa05b7f Mon Sep 17 00:00:00 2001 From: stepshal Date: Sat, 8 Oct 2016 17:36:47 +0700 Subject: Add blank lines after code object, class of function definition. --- src/tests/documentation.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tests/documentation.py') diff --git a/src/tests/documentation.py b/src/tests/documentation.py index e752c3f..8aa33c4 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1481,6 +1481,7 @@ def a_test_for_pylons(): 'The good old factorial' """ + if sys.version >= '3': # tests for signatures specific to Python 3 def test_kwonlydefaults(): @@ -1529,6 +1530,7 @@ def before_after(before, after): yield print(after) + ba = before_after('BEFORE', 'AFTER') # ContextManager instance @@ -1636,6 +1638,8 @@ def get_length_set(obj): class C(object): "Registered as Sized and Iterable" + + collections.Sized.register(C) collections.Iterable.register(C) -- cgit v1.2.1