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:
Joe Gordon
2013-08-15 15:44:14 -04:00
parent b64a9971d5
commit 27b96675f2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
hacking>=0.5.6,<0.7
hacking>=0.5.6,<0.8
coverage>=3.6
discover
feedparser