Fix the deprecation_test for py3.8
PiperOrigin-RevId: 297168125 Change-Id: I441c6cd7d85fc8e8f8aedb53d1b2ec69594d9bcd
This commit is contained in:
parent
79385b1393
commit
e012e9a786
@ -761,7 +761,7 @@ class DeprecatedArgValuesTest(test.TestCase):
|
||||
deprecation.deprecated_arg_values(date, None, deprecated=True)
|
||||
with self.assertRaisesRegexp(ValueError, "instructions"):
|
||||
deprecation.deprecated_arg_values(date, "", deprecated=True)
|
||||
with self.assertRaisesRegexp(ValueError, "argument", deprecated=True):
|
||||
with self.assertRaisesRegexp(ValueError, "argument"):
|
||||
deprecation.deprecated_arg_values(date, instructions)
|
||||
|
||||
@test.mock.patch.object(logging, "warning", autospec=True)
|
||||
|
Loading…
Reference in New Issue
Block a user