summaryrefslogtreecommitdiff
path: root/test/git/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_config.py')
-rw-r--r--test/git/test_config.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/git/test_config.py b/test/git/test_config.py
index 604a25f4..8c846b99 100644
--- a/test/git/test_config.py
+++ b/test/git/test_config.py
@@ -14,9 +14,7 @@ class TestBase(TestCase):
def _to_memcache(self, file_path):
fp = open(file_path, "r")
- sio = StringIO.StringIO()
- sio.write(fp.read())
- sio.seek(0)
+ sio = StringIO.StringIO(fp.read())
sio.name = file_path
return sio