@@ -62,13 +62,12 @@ def test_round(self):
6262
6363 # float input to `decimals`
6464 non_int_round_dict = {"col1" : 1 , "col2" : 0.5 }
65- msg = "integer argument expected, got float "
65+ msg = "Values in decimals must be integers "
6666 with pytest .raises (TypeError , match = msg ):
6767 df .round (non_int_round_dict )
6868
6969 # String input
7070 non_int_round_dict = {"col1" : 1 , "col2" : "foo" }
71- msg = r"an integer is required \(got type str\)"
7271 with pytest .raises (TypeError , match = msg ):
7372 df .round (non_int_round_dict )
7473
@@ -78,7 +77,6 @@ def test_round(self):
7877
7978 # List input
8079 non_int_round_dict = {"col1" : 1 , "col2" : [1 , 2 ]}
81- msg = r"an integer is required \(got type list\)"
8280 with pytest .raises (TypeError , match = msg ):
8381 df .round (non_int_round_dict )
8482
@@ -106,7 +104,6 @@ def test_round(self):
106104 # nan in Series round
107105 nan_round_Series = Series ({"col1" : np .nan , "col2" : 1 })
108106
109- msg = "integer argument expected, got float"
110107 with pytest .raises (TypeError , match = msg ):
111108 df .round (nan_round_Series )
112109
0 commit comments