Fix the deprecation_test for py3.8

PiperOrigin-RevId: 297168125
Change-Id: I441c6cd7d85fc8e8f8aedb53d1b2ec69594d9bcd
This commit is contained in:
A. Unique TensorFlower 2020-02-25 11:50:18 -08:00 committed by TensorFlower Gardener
parent 79385b1393
commit e012e9a786

View File

@ -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)