Antoni Segura Puimedon has posted comments on this change.
Change subject: Fix test errors on el6
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File tests/jsonRpcTests.py
Line 250: with constructServer(reactorType, bridge) as (server,
clientFactory):
Line 251: client = clientFactory()
Line 252: client.connect()
Line 253: with closing(client):
Line 254: try:
If the reason for this change is because 2.6 does not have assertRaises as a
context manager, you might want to use the assertRaises contextmanager that I
did in tests/configNetworkTests.py lines 44-66.
Line 255: client.callMethod("I.DO.NOT.EXIST :(", [], 10)
Line 256: self.fail("Exception expected")
Line 257: except JsonRpcError, ex:
Line 258: self.assertEquals(ex.code,
--
To view, visit http://gerrit.ovirt.org/11350
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I92e1f6a9c8931982b2467ca4b69a6ec819eb0d16
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches