@@ -20,8 +20,7 @@ def test_two_arguments():
20
20
Check whether no warnings are displayed if `some_func` called with
21
21
two positional arguments
22
22
"""
23
- with tm .assert_produces_warning (FutureWarning ):
24
- s = some_func (1 , 2 )
23
+ s = some_func (1 , 2 )
25
24
assert s == 3
26
25
27
26
@@ -30,21 +29,29 @@ def test_two_and_two_arguments():
30
29
Check whether no warnings are displayed if `some_func` called with
31
30
two positional arguments and two keyword arguments
32
31
"""
33
- with tm .assert_produces_warning (FutureWarning ):
34
- s = some_func (1 , 2 , c = 3 , d = 4 )
35
- assert s == 10
32
+ s = some_func (1 , 2 , c = 3 , d = 6 )
33
+ assert s == 12
36
34
37
35
38
36
def test_two_and_one_arguments ():
39
37
"""
40
38
Check whether no warnings are displayed if `some_func` called with
41
39
two positional arguments and one keyword argument
42
40
"""
43
- with tm .assert_produces_warning (FutureWarning ):
44
- s = some_func (1 , 2 , d = 12 )
41
+ s = some_func (1 , 2 , d = 12 )
45
42
assert s == 15
46
43
47
44
45
+ def test_three_arguments ():
46
+ """
47
+ Check whether a warning is displayed if `some_func` called with
48
+ three positional arguments
49
+ """
50
+ with tm .assert_produces_warning (FutureWarning ):
51
+ s = some_func (1 , 2 , 5 )
52
+ assert s == 8
53
+
54
+
48
55
def test_four_arguments ():
49
56
"""
50
57
Check whether a warning is displayed if `some_func` called with
0 commit comments