Change in vdsm[master]: tests: Cleanup apiTests exception handling

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Fri Nov 30 02:15:12 UTC 2012


ShaoHe Feng has posted comments on this change.

Change subject: tests: Cleanup apiTests exception handling
......................................................................


Patch Set 2: I would prefer that you didn't submit this

(1 inline comment)

....................................................
File tests/apiTests.py
Line 217:             raise ProtocolError("Unable to read response body: %s", e)
Line 218:         if len(data) != msgLen:
Line 219:             raise ProtocolError("Response body length mismatch")
Line 220:         return json.loads(data)
Line 221:         sock.close()
when will socket close?
 Hopefully, there is a context manager for socket.  like "with socket.socket() as sock"
Line 222: 
Line 223:     def testPing(self):
Line 224:         self.clearAPI()
Line 225:         self.programAPI("testPing")


--
To view, visit http://gerrit.ovirt.org/9499
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I818e5e7b8dd0a1abad94deb65e32c1d76225b839
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list