diff options
Diffstat (limited to 'test/input/func_arguments.py')
| -rw-r--r-- | test/input/func_arguments.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/input/func_arguments.py b/test/input/func_arguments.py index 1c27ef2..b607699 100644 --- a/test/input/func_arguments.py +++ b/test/input/func_arguments.py @@ -81,3 +81,20 @@ def method_tests(): demo.decorated_method() DemoClass.decorated_method(demo) +# Test a regression (issue #234) +import sys + +# pylint: disable=too-few-public-methods +class Text(object): + """ Regression """ + + if sys.version_info > (3,): + def __new__(cls): + """ empty """ + return object.__new__(cls) + else: + def __new__(cls): + """ empty """ + return object.__new__(cls) + +Text() |
