We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b565c36 commit 35be9e8Copy full SHA for 35be9e8
tests/basics/class_new.py
@@ -5,13 +5,14 @@
5
except AttributeError:
6
print("SKIP")
7
raise SystemExit
8
+
9
class A:
10
def __new__(cls):
11
print("A.__new__")
12
return super(cls, A).__new__(cls)
13
14
def __init__(self):
- pass
15
+ print("A.__init__")
16
17
def meth(self):
18
print('A.meth')
@@ -35,5 +36,10 @@ def meth(self):
35
36
37
class B:
38
def __new__(self, v1, v2):
- None
39
-B(1, 2)
+ print("B.__new__", v1, v2)
40
41
+ def __init__(self, v1, v2):
42
+ # Should not be called in this test
43
+ print("B.__init__", v1, v2)
44
45
+print("B inst:", B(1, 2))
0 commit comments