From d007cb890394d9d26c6fafb133532a5175d91eb2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 21 Aug 2015 11:56:14 +0100 Subject: tests: Add more tests to improve coverage, mostly testing exceptions. --- tests/basics/class_new.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/basics/class_new.py') diff --git a/tests/basics/class_new.py b/tests/basics/class_new.py index 7e84dccf4..a6a34c581 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) -- cgit v1.2.3