Skip to content

Commit c10a098

Browse files
committed
PYTHON-951 - Use bytes in GridFS tests.
1 parent 1c6ed1b commit c10a098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_gridfs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def test_empty_file(self):
139139
self.assertTrue(isinstance(raw["md5"], basestring))
140140

141141
def test_corrupt_chunk(self):
142-
files_id = self.fs.put('foobar')
142+
files_id = self.fs.put(b('foobar'))
143143
self.db.fs.chunks.update({'files_id': files_id},
144-
{'$set': {'data': Binary('foo', 0)}})
144+
{'$set': {'data': Binary(b('foo'), 0)}})
145145
try:
146146
out = self.fs.get(files_id)
147147
self.assertRaises(CorruptGridFile, out.read)

0 commit comments

Comments
 (0)