Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Change-Id: I38b1e570c69af59aac917e96845b7add947d7196
  • Loading branch information
wesm committed May 13, 2017
1 parent 10837a6 commit 22346d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyarrow/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def __init__(self, sink, schema):


StreamWriter = BatchStreamWriter
StreamReader = BatchStreamWriter
StreamReader = BatchStreamReader
FileWriter = BatchFileWriter
FileReader = BatchFileReader
4 changes: 2 additions & 2 deletions python/pyarrow/tests/test_ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def test_read_all(self):
class TestStream(MessagingTest, unittest.TestCase):

def _get_writer(self, sink, schema):
return pa.StreamWriter(sink, schema)
return pa.BatchStreamWriter(sink, schema)

def test_simple_roundtrip(self):
batches = self.write_batches()
file_contents = self._get_source()
reader = pa.StreamReader(file_contents)
reader = pa.BatchStreamReader(file_contents)

assert reader.schema.equals(batches[0].schema)

Expand Down

0 comments on commit 22346d4

Please sign in to comment.