summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-07-25 12:07:41 +0200
committerTorsten Marek <shlomme@gmail.com>2014-07-25 12:07:41 +0200
commit640161196f431821182e4cfac5dd746a7ae464e4 (patch)
treeaa3db1355650e552603e4f90dbdcce3eabc0d39f
parentd76865583f0103915150ed901afeceba9f2eadba (diff)
downloadpylint-640161196f431821182e4cfac5dd746a7ae464e4.tar.gz
Extend the test case for metaclass invocation detection.
-rw-r--r--test/input/func_ctor_arguments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/input/func_ctor_arguments.py b/test/input/func_ctor_arguments.py
index 7bfc3a2..f9a3430 100644
--- a/test/input/func_ctor_arguments.py
+++ b/test/input/func_ctor_arguments.py
@@ -64,8 +64,8 @@ ClassNew(one=2)
class Metaclass(type):
- pass
-
+ def __new__(mcs, name, bases, namespace):
+ return type.__new__(mcs, name, bases, namespace)
def with_metaclass(meta, base=object):
"""Create a new type that can be used as a metaclass."""