Merge pull request #47512 from park-junha:fix-python-module-abc-abstract-test
PiperOrigin-RevId: 360785766 Change-Id: I55e4dcefa5aaaadf1aa636630cc92460999a1159
This commit is contained in:
commit
8d937c4e80
@ -335,7 +335,7 @@ class ForwardMethodsTest(test_util.TensorFlowTestCase):
|
|||||||
class AbcTest(test_util.TensorFlowTestCase):
|
class AbcTest(test_util.TensorFlowTestCase):
|
||||||
|
|
||||||
def testAbstract(self):
|
def testAbstract(self):
|
||||||
msg = "Can't instantiate .* abstract methods"
|
msg = "Can't instantiate.*abstract"
|
||||||
with self.assertRaisesRegex(TypeError, msg):
|
with self.assertRaisesRegex(TypeError, msg):
|
||||||
AbstractModule() # pylint: disable=abstract-class-instantiated
|
AbstractModule() # pylint: disable=abstract-class-instantiated
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user