@@ -1171,29 +1171,29 @@ def test_getitem_fancy_1d(self):
11711171
11721172 # return self if no slicing...for now
11731173 with catch_warnings (record = True ):
1174- self . assertIs ( f .ix [:, :], f )
1174+ assert f .ix [:, :] is f
11751175
11761176 # low dimensional slice
11771177 with catch_warnings (record = True ):
11781178 xs1 = f .ix [2 , ['C' , 'B' , 'A' ]]
11791179 xs2 = f .xs (f .index [2 ]).reindex (['C' , 'B' , 'A' ])
1180- assert_series_equal (xs1 , xs2 )
1180+ tm . assert_series_equal (xs1 , xs2 )
11811181
11821182 with catch_warnings (record = True ):
11831183 ts1 = f .ix [5 :10 , 2 ]
11841184 ts2 = f [f .columns [2 ]][5 :10 ]
1185- assert_series_equal (ts1 , ts2 )
1185+ tm . assert_series_equal (ts1 , ts2 )
11861186
11871187 # positional xs
11881188 with catch_warnings (record = True ):
11891189 xs1 = f .ix [0 ]
11901190 xs2 = f .xs (f .index [0 ])
1191- assert_series_equal (xs1 , xs2 )
1191+ tm . assert_series_equal (xs1 , xs2 )
11921192
11931193 with catch_warnings (record = True ):
11941194 xs1 = f .ix [f .index [5 ]]
11951195 xs2 = f .xs (f .index [5 ])
1196- assert_series_equal (xs1 , xs2 )
1196+ tm . assert_series_equal (xs1 , xs2 )
11971197
11981198 # single column
11991199 with catch_warnings (record = True ):
@@ -1204,18 +1204,18 @@ def test_getitem_fancy_1d(self):
12041204 exp = f .copy ()
12051205 exp .values [5 ] = 4
12061206 f .ix [5 ][:] = 4
1207- assert_frame_equal (exp , f )
1207+ tm . assert_frame_equal (exp , f )
12081208
12091209 with catch_warnings (record = True ):
12101210 exp .values [:, 1 ] = 6
12111211 f .ix [:, 1 ][:] = 6
1212- assert_frame_equal (exp , f )
1212+ tm . assert_frame_equal (exp , f )
12131213
12141214 # slice of mixed-frame
12151215 with catch_warnings (record = True ):
12161216 xs = self .mixed_frame .ix [5 ]
12171217 exp = self .mixed_frame .xs (self .mixed_frame .index [5 ])
1218- assert_series_equal (xs , exp )
1218+ tm . assert_series_equal (xs , exp )
12191219
12201220 def test_setitem_fancy_1d (self ):
12211221
@@ -1676,7 +1676,7 @@ def test_set_value(self):
16761676 def test_set_value_resize (self ):
16771677
16781678 res = self .frame .set_value ('foobar' , 'B' , 0 )
1679- self . assertIs ( res , self .frame )
1679+ assert res is self .frame
16801680 self .assertEqual (res .index [- 1 ], 'foobar' )
16811681 self .assertEqual (res .get_value ('foobar' , 'B' ), 0 )
16821682
0 commit comments