[go: nahoru, domu]

Skip to content

Commit

Permalink
Add some debug information to an assert in example_proto_coder_test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 424634421
  • Loading branch information
zoyahav authored and tfx-copybara committed Jan 27, 2022
1 parent 4b824e9 commit 5d7323c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tensorflow_transform/coders/example_proto_coder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ class ExampleProtoCoderTest(test_case.TransformTestCase):
def setUp(self):
super().setUp()
# Verify that the implementation we requested via the Flag is honoured.
assert api_implementation.Type() == flags.FLAGS.proto_implementation_type
assert api_implementation.Type() == flags.FLAGS.proto_implementation_type, (
'Expected proto implementation type '
f'"{flags.FLAGS.proto_implementation_type}", got: '
f'"{api_implementation.Type()}"')

def assertSerializedProtosEqual(self, a, b):
np.testing.assert_equal(_binary_to_example(a), _binary_to_example(b))
Expand Down

0 comments on commit 5d7323c

Please sign in to comment.