Merge "Replace assertRaisesRegexp with assertRaisesRegex"
This commit is contained in:
commit
8473e2e373
@ -174,7 +174,7 @@ class TestElementDeps(testtools.TestCase):
|
|||||||
|
|
||||||
def test_elements_provide_same(self):
|
def test_elements_provide_same(self):
|
||||||
msg = "virtual: already provided by \['provides_virtual'\]"
|
msg = "virtual: already provided by \['provides_virtual'\]"
|
||||||
self.assertRaisesRegexp(element_dependencies.AlreadyProvidedException,
|
self.assertRaisesRegex(element_dependencies.AlreadyProvidedException,
|
||||||
msg,
|
msg,
|
||||||
element_dependencies.get_elements,
|
element_dependencies.get_elements,
|
||||||
['provides_virtual', 'also_provides_virtual'],
|
['provides_virtual', 'also_provides_virtual'],
|
||||||
|
Loading…
Reference in New Issue
Block a user