Merge "Fix deprecated-method warning"

This commit is contained in:
Zuul 2023-12-05 11:38:17 +00:00 committed by Gerrit Code Review
commit da96b6966b

View File

@ -90,7 +90,7 @@ class TestMovedGlobals(base.BaseTestCase):
delete_g()
self.assertRaises(AttributeError, lambda: mod.g)
self.failUnlessRaises(AttributeError, delete_g)
self.assertRaises(AttributeError, delete_g)
def test_not_last_line(self):
self.assertRaises(SystemExit, import_code, 'code2')