diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 10:09:51 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 10:09:51 +0100 |
commit | bc8c91200a7fb2140aadd283c66b5ab82f9ad61e (patch) | |
tree | 54f8b4e09ae36f465da25ecd16d6377a2a8414a8 /git/test/performance | |
parent | ae2ff0f9d704dc776a1934f72a339da206a9fff4 (diff) | |
download | gitpython-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/performance')
-rw-r--r-- | git/test/performance/test_commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/performance/test_commit.py b/git/test/performance/test_commit.py index a55b6d43..9e8c1325 100644 --- a/git/test/performance/test_commit.py +++ b/git/test/performance/test_commit.py @@ -4,7 +4,7 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php from __future__ import print_function -from io import StringIO +from io import BytesIO from time import time import sys @@ -93,7 +93,7 @@ class TestPerformance(TestBigRepoRW): hc.committer, hc.committed_date, hc.committer_tz_offset, str(i), parents=hc.parents, encoding=hc.encoding) - stream = StringIO() + stream = BytesIO() cm._serialize(stream) slen = stream.tell() stream.seek(0) |