@@ -314,11 +314,11 @@ def test_rpow_one_to_na(self):
314314
315315class TestComparisonOps (BaseOpsUtil ):
316316
317- def _compare_other (self , s , data , op_name , other ):
317+ def _compare_other (self , data , op_name , other ):
318318 op = self .get_op_from_name (op_name )
319319
320320 # array
321- result = op (s , other )
321+ result = pd . Series ( op (data , other ) )
322322 expected = pd .Series (op (data ._data , other ))
323323
324324 # fill the nan locations
@@ -340,14 +340,12 @@ def _compare_other(self, s, data, op_name, other):
340340
341341 def test_compare_scalar (self , data , all_compare_operators ):
342342 op_name = all_compare_operators
343- s = pd .Series (data )
344- self ._compare_other (s , data , op_name , 0 )
343+ self ._compare_other (data , op_name , 0 )
345344
346345 def test_compare_array (self , data , all_compare_operators ):
347346 op_name = all_compare_operators
348- s = pd .Series (data )
349347 other = pd .Series ([0 ] * len (data ))
350- self ._compare_other (s , data , op_name , other )
348+ self ._compare_other (data , op_name , other )
351349
352350
353351class TestCasting (object ):
0 commit comments