@@ -14,22 +14,22 @@ def test_getfuncargnames_functions():
14
14
"""Test getfuncargnames for normal functions"""
15
15
16
16
def f ():
17
- pass
17
+ raise NotImplementedError ()
18
18
19
19
assert not fixtures .getfuncargnames (f )
20
20
21
21
def g (arg ):
22
- pass
22
+ raise NotImplementedError ()
23
23
24
24
assert fixtures .getfuncargnames (g ) == ("arg" ,)
25
25
26
26
def h (arg1 , arg2 = "hello" ):
27
- pass
27
+ raise NotImplementedError ()
28
28
29
29
assert fixtures .getfuncargnames (h ) == ("arg1" ,)
30
30
31
31
def j (arg1 , arg2 , arg3 = "hello" ):
32
- pass
32
+ raise NotImplementedError ()
33
33
34
34
assert fixtures .getfuncargnames (j ) == ("arg1" , "arg2" )
35
35
@@ -39,7 +39,7 @@ def test_getfuncargnames_methods():
39
39
40
40
class A :
41
41
def f (self , arg1 , arg2 = "hello" ):
42
- pass
42
+ raise NotImplementedError ()
43
43
44
44
assert fixtures .getfuncargnames (A ().f ) == ("arg1" ,)
45
45
@@ -50,7 +50,7 @@ def test_getfuncargnames_staticmethod():
50
50
class A :
51
51
@staticmethod
52
52
def static (arg1 , arg2 , x = 1 ):
53
- pass
53
+ raise NotImplementedError ()
54
54
55
55
assert fixtures .getfuncargnames (A .static , cls = A ) == ("arg1" , "arg2" )
56
56
@@ -60,7 +60,7 @@ def test_getfuncargnames_partial():
60
60
import functools
61
61
62
62
def check (arg1 , arg2 , i ):
63
- pass
63
+ raise NotImplementedError ()
64
64
65
65
class T :
66
66
test_ok = functools .partial (check , i = 2 )
@@ -74,7 +74,7 @@ def test_getfuncargnames_staticmethod_partial():
74
74
import functools
75
75
76
76
def check (arg1 , arg2 , i ):
77
- pass
77
+ raise NotImplementedError ()
78
78
79
79
class T :
80
80
test_ok = staticmethod (functools .partial (check , i = 2 ))
@@ -3355,7 +3355,7 @@ def test_fixture_disallow_twice(self):
3355
3355
@pytest .fixture
3356
3356
@pytest .fixture
3357
3357
def foo ():
3358
- pass
3358
+ raise NotImplementedError ()
3359
3359
3360
3360
3361
3361
class TestContextManagerFixtureFuncs :
@@ -3981,7 +3981,7 @@ def test_call_fixture_function_error():
3981
3981
3982
3982
@pytest .fixture
3983
3983
def fix ():
3984
- return 1
3984
+ raise NotImplementedError ()
3985
3985
3986
3986
with pytest .raises (pytest .fail .Exception ):
3987
3987
assert fix () == 1
0 commit comments