diff options
Diffstat (limited to 'src/tests/documentation.py')
| -rw-r--r-- | src/tests/documentation.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
