Skip to content

Commit

Permalink
Add pytest-mock and fix build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop committed Aug 20, 2018
1 parent 4403745 commit 1092648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omniduct/databases/_cursor_formatters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import csv
import io
import pickle
import six
from distutils.version import LooseVersion

import pandas as pd
Expand Down Expand Up @@ -149,7 +150,7 @@ class CsvCursorFormatter(CursorFormatter):
}

def init(self, include_header=True):
self.output = io.StringIO()
self.output = io.StringIO() if six.PY3 else io.BytesIO()
self.include_header = include_header
self.writer = csv.writer(self.output, **self.FORMAT_PARAMS)

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deps=
pyfakefs
pytest
pytest-cov
pytest-mock
requests
commands=
pytest --cov omniduct --cov-report term-missing tests
Expand Down

0 comments on commit 1092648

Please sign in to comment.