added testcase for schema not equal, disabled now

This commit is contained in:
Bryan Cutler committed 2016-11-29 16:54:53 -08:00
1 parent c3d7e8fd82
commit bd2a7209f8
1 file changed
+12
+12
View File
@@ -73,6 +73,18 @@ def test_recordbatchlist_to_pandas():
assert_frame_equal(data, result)
def test_recordbatchlist_errors():
data1 = pd.DataFrame({'c1': np.array([1], dtype='uint32')})
data2 = pd.DataFrame({'c1': np.array([4.0, 5.0], dtype='float64')})
batch1 = pa.RecordBatch.from_pandas(data1)
batch2 = pa.RecordBatch.from_pandas(data2)
# TODO: Enable when subclass of unittest.testcase
#with self.assertRaises(pyarrow.ArrowException):
# self.assertRaises(pa.dataframe_from_batches([batch1, batch2]))
def test_table_basics():
data = [
pa.from_pylist(range(5)),