@@ -2110,6 +2110,12 @@ def _check_unary_op(op):
2110
2110
2111
2111
_check_unary_op (operator .neg )
2112
2112
2113
+ def test_logical_typeerror (self ):
2114
+ self .assertRaises (TypeError , self .frame .__eq__ , 'foo' )
2115
+ self .assertRaises (TypeError , self .frame .__lt__ , 'foo' )
2116
+ self .assertRaises (TypeError , self .frame .__gt__ , 'foo' )
2117
+ self .assertRaises (TypeError , self .frame .__ne__ , 'foo' )
2118
+
2113
2119
def test_neg (self ):
2114
2120
# what to do?
2115
2121
assert_frame_equal (- self .frame , - 1 * self .frame )
@@ -2518,7 +2524,7 @@ def test_to_excel_from_excel(self):
2518
2524
reader = ExcelFile (path )
2519
2525
recons = reader .parse ('test1' ).astype (np .int64 )
2520
2526
assert_frame_equal (frame , recons )
2521
-
2527
+
2522
2528
#Test reading/writing np.bool8, roundtrip only works for xlsx
2523
2529
frame = (DataFrame (np .random .randn (10 ,2 )) >= 0 )
2524
2530
frame .to_excel (path ,'test1' )
@@ -2552,7 +2558,7 @@ def test_to_excel_from_excel(self):
2552
2558
recons = reader .parse ('test1' )
2553
2559
assert_frame_equal (self .tsframe , recons )
2554
2560
os .remove (path )
2555
-
2561
+
2556
2562
#Test roundtrip np.bool8, does not seem to work for xls
2557
2563
path = '__tmp__.xlsx'
2558
2564
frame = (DataFrame (np .random .randn (10 ,2 )) >= 0 )
0 commit comments