diff options
Diffstat (limited to 'tests/basics/class_new.py')
-rw-r--r-- | tests/basics/class_new.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/class_new.py b/tests/basics/class_new.py index 7e84dccf40..a6a34c5811 100644 --- a/tests/basics/class_new.py +++ b/tests/basics/class_new.py @@ -25,3 +25,8 @@ a.meth() # __new__ should automatically be a staticmethod, so this should work a = a.__new__(A) a.meth() + +class B: + def __new__(self, v1, v2): + None +B(1, 2) |