Skip to content

Commit 3cd1734

Browse files
committed
Pass the non-related tests in test_partial and test_reshape
For test_partial, instead of checking for `float`, now it checks for `object` For test_reshape, instead of checking for `pandas.core.internals.SparseBlock` now it checks for `pandas.core.internals.IntBlock`
1 parent 1fa578b commit 3cd1734

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/tests/indexing/test_partial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def f():
210210
df.loc[3] = [6, 7]
211211

212212
exp = DataFrame([[6, 7]], index=[3], columns=['A', 'B'],
213-
dtype='float64')
213+
dtype='object')
214214
tm.assert_frame_equal(df, exp)
215215

216216
def test_series_partial_set(self):

pandas/tests/test_reshape.py

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def test_basic_types(self):
250250
self.assertEqual(type(r), exp_df_type)
251251

252252
r = get_dummies(s_df, sparse=self.sparse, columns=['a'])
253+
exp_blk_type = pd.core.internals.IntBlock
253254
self.assertEqual(type(r[['a_0']]._data.blocks[0]), exp_blk_type)
254255
self.assertEqual(type(r[['a_1']]._data.blocks[0]), exp_blk_type)
255256
self.assertEqual(type(r[['a_2']]._data.blocks[0]), exp_blk_type)

0 commit comments

Comments
 (0)