Upgrade to Hacking 0.7
There was a bug in hacking 0.6 that broke H202, assertRaises Exception too broad, so switch to Hacking 0.7 and fix the one H202 bug. Change-Id: Ia3fb22d1524022479d7068cb84a3bdf7ca19f408
This commit is contained in:
@@ -528,11 +528,11 @@ class _ComputeAPIUnitTestMixIn(object):
|
||||
|
||||
db.block_device_mapping_get_all_by_instance(
|
||||
self.context, inst.uuid).AndReturn([])
|
||||
inst.save().AndRaise(Exception)
|
||||
inst.save().AndRaise(test.TestingException)
|
||||
|
||||
self.mox.ReplayAll()
|
||||
|
||||
self.assertRaises(Exception,
|
||||
self.assertRaises(test.TestingException,
|
||||
self.compute_api.soft_delete, self.context, inst)
|
||||
|
||||
def test_is_volume_backed_being_true_if_root_is_block_device(self):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
hacking>=0.5.6,<0.7
|
||||
hacking>=0.5.6,<0.8
|
||||
coverage>=3.6
|
||||
discover
|
||||
feedparser
|
||||
|
||||
Reference in New Issue
Block a user