summaryrefslogtreecommitdiff
path: root/git/test/performance/test_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/performance/test_commit.py')
-rw-r--r--git/test/performance/test_commit.py4
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)