From 97f7248db2b3ba645395a1149b3996ffd43e96c7 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Sun, 27 Aug 2017 12:29:06 -0700 Subject: [PATCH] fix test failure in Vsion bindings --- pyobjc-framework-Vision/Lib/Vision/_metadata.py | 4 ++-- pyobjc-framework-Vision/PyObjCTest/test_vnfacelandmarks.py | 4 ++-- pyobjc-framework-Vision/metadata/Vision.fwinfo | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyobjc-framework-Vision/Lib/Vision/_metadata.py b/pyobjc-framework-Vision/Lib/Vision/_metadata.py index 79f92fae2e..44e8d1b2ca 100644 --- a/pyobjc-framework-Vision/Lib/Vision/_metadata.py +++ b/pyobjc-framework-Vision/Lib/Vision/_metadata.py @@ -27,8 +27,8 @@ def littleOrBig(a, b): return b r(b'VNCoreMLRequest', b'initWithModel:completionHandler:', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) r(b'VNDetectTextRectanglesRequest', b'reportCharacterBoxes', {'retval': {'type': 'Z'}}) r(b'VNDetectTextRectanglesRequest', b'setReportCharacterBoxes:', {'arguments': {2: {'type': 'Z'}}}) - r(b'VNFaceLandmarkRegion', b'normalizedPoints', {'retval': {'c_array_of_variable_length': True}}) - r(b'VNFaceLandmarkRegion', b'pointsInImageOfSize:', {'retval': {'c_array_of_variable_length': True}}) + r(b'VNFaceLandmarkRegion2D', b'normalizedPoints', {'retval': {'c_array_of_variable_length': True}}) + r(b'VNFaceLandmarkRegion2D', b'pointsInImageOfSize:', {'retval': {'c_array_of_variable_length': True}}) r(b'VNImageRequestHandler', b'performRequests:error:', {'retval': {'type': 'Z'}, 'arguments': {3: {'type_modifier': b'o'}}}) r(b'VNRequest', b'completionHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}) r(b'VNRequest', b'initWithCompletionHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) diff --git a/pyobjc-framework-Vision/PyObjCTest/test_vnfacelandmarks.py b/pyobjc-framework-Vision/PyObjCTest/test_vnfacelandmarks.py index b56e7085ca..c0ad795f2e 100644 --- a/pyobjc-framework-Vision/PyObjCTest/test_vnfacelandmarks.py +++ b/pyobjc-framework-Vision/PyObjCTest/test_vnfacelandmarks.py @@ -7,8 +7,8 @@ class TestVNFaceLandmarks (TestCase): @min_os_level('10.13') def testMethods10_13(self): - self.assertResultIsVariableSize(Vision.VNFaceLandmarkRegion.normalizedPoints) - self.assertResultIsVariableSize(Vision.VNFaceLandmarkRegion.pointsInImageOfSize_) + self.assertResultIsVariableSize(Vision.VNFaceLandmarkRegion2D.normalizedPoints) + self.assertResultIsVariableSize(Vision.VNFaceLandmarkRegion2D.pointsInImageOfSize_) if __name__ == "__main__": diff --git a/pyobjc-framework-Vision/metadata/Vision.fwinfo b/pyobjc-framework-Vision/metadata/Vision.fwinfo index 99c2be792f..c50a515a6c 100644 --- a/pyobjc-framework-Vision/metadata/Vision.fwinfo +++ b/pyobjc-framework-Vision/metadata/Vision.fwinfo @@ -47,7 +47,7 @@ "VNErrorInvalidModel": { "value": 15 } }, "classes": { - "VNFaceLandmarkRegion": { + "VNFaceLandmarkRegion2D": { "methods": [ { "selector": "normalizedPoints",