summaryrefslogtreecommitdiff
path: root/git/test/test_fun.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-05 10:09:51 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-05 10:09:51 +0100
commitbc8c91200a7fb2140aadd283c66b5ab82f9ad61e (patch)
tree54f8b4e09ae36f465da25ecd16d6377a2a8414a8 /git/test/test_fun.py
parentae2ff0f9d704dc776a1934f72a339da206a9fff4 (diff)
downloadgitpython-py3.tar.gz
Fixed io types to make tests work on PY2 once again.py3
Now it's about going through PY3 issues
Diffstat (limited to 'git/test/test_fun.py')
-rw-r--r--git/test/test_fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_fun.py b/git/test/test_fun.py
index 4093065d..9d3e749e 100644
--- a/git/test/test_fun.py
+++ b/git/test/test_fun.py
@@ -24,7 +24,7 @@ from stat import (
)
from git.index import IndexFile
-from io import StringIO
+from io import BytesIO
class TestFun(TestBase):
@@ -72,7 +72,7 @@ class TestFun(TestBase):
def mktree(self, odb, entries):
"""create a tree from the given tree entries and safe it to the database"""
- sio = StringIO()
+ sio = BytesIO()
tree_to_stream(entries, sio.write)
sio.seek(0)
istream = odb.store(IStream(str_tree_type, len(sio.getvalue()), sio))