12
12
class StubSubparsers (StubProxy ):
13
13
14
14
def __init__ (self , stub = None , name = 'subparsers' ):
15
- super ().__init__ (stub , name )
15
+ super (StubSubparsers , self ).__init__ (stub , name )
16
16
17
17
def add_parser (self , name ):
18
18
self .add_call ('add_parser' , None , {'name' : name })
@@ -22,7 +22,7 @@ def add_parser(self, name):
22
22
class StubArgParser (StubProxy ):
23
23
24
24
def __init__ (self , stub = None ):
25
- super ().__init__ (stub , 'argparser' )
25
+ super (StubArgParser , self ).__init__ (stub , 'argparser' )
26
26
27
27
def add_argument (self , * args , ** kwargs ):
28
28
self .add_call ('add_argument' , args , kwargs )
@@ -31,7 +31,7 @@ def add_argument(self, *args, **kwargs):
31
31
class StubPyTest (StubProxy ):
32
32
33
33
def __init__ (self , stub = None ):
34
- super ().__init__ (stub , 'pytest' )
34
+ super (StubPyTest , self ).__init__ (stub , 'pytest' )
35
35
self .return_main = 0
36
36
37
37
def main (self , args , plugins ):
@@ -42,7 +42,7 @@ def main(self, args, plugins):
42
42
class StubPlugin (StubProxy ):
43
43
44
44
def __init__ (self , stub = None ):
45
- super ().__init__ (stub , 'plugin' )
45
+ super (StubPlugin , self ).__init__ (stub , 'plugin' )
46
46
47
47
def __getattr__ (self , name ):
48
48
if not name .startswith ('pytest_' ):
@@ -67,7 +67,7 @@ def __init__(self, name):
67
67
class StubPytestItem (StubProxy ):
68
68
69
69
def __init__ (self , stub = None , ** attrs ):
70
- super ().__init__ (stub , 'pytest.Item' )
70
+ super (StubPytestItem , self ).__init__ (stub , 'pytest.Item' )
71
71
self .__dict__ .update (attrs )
72
72
if 'own_markers' not in attrs :
73
73
self .own_markers = ()
@@ -82,7 +82,7 @@ def func(*args, **kwargs):
82
82
class StubPytestSession (StubProxy ):
83
83
84
84
def __init__ (self , stub = None ):
85
- super ().__init__ (stub , 'pytest.Session' )
85
+ super (StubPytestSession , self ).__init__ (stub , 'pytest.Session' )
86
86
87
87
def __getattr__ (self , name ):
88
88
self .add_call (name + ' (attr)' , None , None )
@@ -94,7 +94,7 @@ def func(*args, **kwargs):
94
94
class StubPytestConfig (StubProxy ):
95
95
96
96
def __init__ (self , stub = None ):
97
- super ().__init__ (stub , 'pytest.Config' )
97
+ super (StubPytestConfig , self ).__init__ (stub , 'pytest.Config' )
98
98
99
99
def __getattr__ (self , name ):
100
100
self .add_call (name + ' (attr)' , None , None )
0 commit comments