PYTHON-782 Demonstrate error from readchunk() of disconnected GridOut.
This commit is contained in:
parent
49ff70c39e
commit
bd895ca079
@ -589,6 +589,9 @@ with GridOut(self.db.fs, infile._id) as outfile:
|
||||
outfile.read()
|
||||
outfile.filename
|
||||
|
||||
outfile = GridOut(fs, infile._id, _connect=False)
|
||||
outfile.readchunk()
|
||||
|
||||
def test_grid_in_lazy_connect(self):
|
||||
client = MongoClient('badhost', _connect=False)
|
||||
fs = client.db.fs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user