Fixing a comment.
PiperOrigin-RevId: 239381372
This commit is contained in:
parent
ec1befe9d8
commit
203c4f750e
@ -253,7 +253,8 @@ class DefFunctionTest(test.TestCase):
|
|||||||
func = def_function.function(
|
func = def_function.function(
|
||||||
functools.partial(f, x=constant_op.constant(1)))
|
functools.partial(f, x=constant_op.constant(1)))
|
||||||
|
|
||||||
# This is a limitation of functools.partial.
|
# This is a limitation of functools.partial. It is not unexpected behavior,
|
||||||
|
# but still testing for it for completeness.
|
||||||
with self.assertRaisesRegexp(
|
with self.assertRaisesRegexp(
|
||||||
TypeError, 'got multiple values for'):
|
TypeError, 'got multiple values for'):
|
||||||
func(5)
|
func(5)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user