diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-07-24 16:39:07 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-07-24 16:39:07 +0200 |
commit | 39e7be1a32224afa47d23e161f047feab5fbcc93 (patch) | |
tree | 92075aa624a4b997a6b6dc2c48573cfcfef80379 | |
parent | 8d18e9a1d5e820e4774ee811b495f52b4071683a (diff) | |
download | pylint-39e7be1a32224afa47d23e161f047feab5fbcc93.tar.gz |
Add a test case for #205.
-rw-r--r-- | test/input/func_ctor_arguments.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/input/func_ctor_arguments.py b/test/input/func_ctor_arguments.py index 987a930..c708855 100644 --- a/test/input/func_ctor_arguments.py +++ b/test/input/func_ctor_arguments.py @@ -61,3 +61,14 @@ ClassMultiInheritance(1, 2, 3) ClassNew(1, kwarg=1) ClassNew(1, 2, 3) ClassNew(one=2) + +import abc + +def with_metaclass(meta, base=object): + """Create a new type that can be used as a metaclass.""" + return meta("NewBase", (base, ), {}) + +class ClassWithMeta(with_metaclass(abc.ABCMeta)): + pass + +ClassWithMeta() |