Skip to content

Commit 659163a

Browse files
daspecsterlukesneeringer
authored andcommitted
Fix build failing with float precision mismatch (#3002)
1 parent c001746 commit 659163a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/google-cloud-vision/unit_tests/test_annotations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _make_pb_entity():
2323
description = 'testing 1 2 3'
2424
locale = 'US'
2525
mid = 'm/w/45342234'
26-
score = 0.235434231
26+
score = 0.390625
2727

2828
entity_annotation = image_annotator_pb2.EntityAnnotation(
2929
mid=mid,
@@ -108,7 +108,7 @@ def test_it(self):
108108
description = 'testing 1 2 3'
109109
locale = 'US'
110110
mid = 'm/w/45342234'
111-
score = 0.235434231
111+
score = 0.390625
112112
entity_annotation = _make_pb_entity()
113113
entities = self._call_fut([entity_annotation])
114114
self.assertEqual(len(entities), 1)
@@ -183,7 +183,7 @@ def test_it(self):
183183
description = 'testing 1 2 3'
184184
locale = 'US'
185185
mid = 'm/w/45342234'
186-
score = 0.235434231
186+
score = 0.390625
187187
entity_annotation = _make_pb_entity()
188188

189189
image_response = image_annotator_pb2.AnnotateImageResponse(

packages/google-cloud-vision/unit_tests/test_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_logo_pb_annotation(self):
3939
description = 'testing 1 2 3'
4040
locale = 'US'
4141
mid = 'm/w/45342234'
42-
score = 0.235434231
42+
score = 0.875
4343
entity_annotation = image_annotator_pb2.EntityAnnotation()
4444
entity_annotation.mid = mid
4545
entity_annotation.locale = locale

0 commit comments

Comments
 (0)