Fix AbcTest.testAbstract assertion
This commit is contained in:
parent
b6f149d84c
commit
f350faf71b
@ -335,8 +335,7 @@ class ForwardMethodsTest(test_util.TensorFlowTestCase):
|
||||
class AbcTest(test_util.TensorFlowTestCase):
|
||||
|
||||
def testAbstract(self):
|
||||
msg = "Can't instantiate .* abstract methods"
|
||||
with self.assertRaisesRegex(TypeError, msg):
|
||||
with self.assertRaises(TypeError):
|
||||
AbstractModule() # pylint: disable=abstract-class-instantiated
|
||||
|
||||
def testConcrete(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user