diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2016-10-08 13:08:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-08 13:08:09 +0200 |
| commit | b05cc016bd4d9826b64f1f44172db9b56b0f8af3 (patch) | |
| tree | be8560a4ee2c2f1a7fb9fffb9cf54fbad0db4ad2 /src/tests/documentation.py | |
| parent | 79100259a2e8e133dcef761d13f4b5d3ba34429e (diff) | |
| parent | bdf2692ca23347f1bdc54017b7f4e106dfa05b7f (diff) | |
| download | python-decorator-git-b05cc016bd4d9826b64f1f44172db9b56b0f8af3.tar.gz | |
Merge pull request #37 from stepshal/E305
Add blank lines after code object, class of function definition.
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) |
