Skip to content

Commit bf0c4e6

Browse files
committed
Python 3: initialize StringIO with bytes.
1 parent afdbe60 commit bf0c4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

couchdb/tests/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ToolLoadTestCase(testutil.TempDatabaseMixin, unittest.TestCase):
2121
def test_handle_credentials(self):
2222
# Issue 194: couchdb-load attribute error: 'Resource' object has no attribute 'http'
2323
# http://code.google.com/p/couchdb-python/issues/detail?id=194
24-
load.load_db(StringIO(''), self.db.resource.url, 'foo', 'bar')
24+
load.load_db(StringIO(b''), self.db.resource.url, 'foo', 'bar')
2525

2626

2727
class ToolDumpTestCase(testutil.TempDatabaseMixin, unittest.TestCase):

0 commit comments

Comments
 (0)