pyobjc-framework-MultipeerConnectivity 12.2.2__tar.gz → 13.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/MultipeerConnectivity/_metadata.py +7 -2
  2. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/PKG-INFO +5 -5
  3. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/SOURCES.txt +2 -2
  4. pyobjc_framework_multipeerconnectivity-13.0/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_multipeerconnectivity-13.0/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Modules/_MultipeerConnectivity.m +9 -2
  7. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Modules/_MultipeerConnectivity_protocols.m +7 -5
  8. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Modules/pyobjc-api.h +18 -4
  9. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Modules/pyobjc-compat.h +0 -18
  10. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PKG-INFO +5 -5
  11. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcadvertiserassistant.py +5 -3
  12. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcbrowserviewcontroller.py +5 -3
  13. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcerror.py +1 -1
  14. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcnearbyserviceadvertiser.py +5 -3
  15. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcnearbyservicebrowser.py +5 -3
  16. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcpeerid.py +1 -1
  17. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_mcsession.py +5 -5
  18. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/metadata/MultipeerConnectivity.fwinfo +1 -24
  19. pyobjc_framework_multipeerconnectivity-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_multipeerconnectivity-13.0/metadata/raw/arm64-27.fwinfo +89 -3
  20. pyobjc_framework_multipeerconnectivity-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_multipeerconnectivity-13.0/metadata/raw/x86_64-27.fwinfo +89 -3
  21. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/pyobjc_setup.py +7 -7
  22. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/setup.py +1 -1
  23. pyobjc_framework_multipeerconnectivity-12.2.2/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/pyobjc-build-info.txt +0 -3
  24. pyobjc_framework_multipeerconnectivity-12.2.2/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/requires.txt +0 -2
  25. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/LICENSE.txt +0 -0
  26. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/MultipeerConnectivity/__init__.py +0 -0
  27. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/dependency_links.txt +0 -0
  28. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/not-zip-safe +0 -0
  29. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/Lib/pyobjc_framework_MultipeerConnectivity.egg-info/top_level.txt +0 -0
  30. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/MANIFEST.in +0 -0
  31. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/__init__.py +0 -0
  32. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/PyObjCTest/test_multipeerconnectivity.py +0 -0
  33. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/README.txt +0 -0
  34. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/metadata/metadata.ini +0 -0
  35. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/pyproject.toml +0 -0
  36. {pyobjc_framework_multipeerconnectivity-12.2.2 → pyobjc_framework_multipeerconnectivity-13.0}/setup.cfg +0 -0
@@ -1,7 +1,5 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Thu May 28 22:16:31 2026
4
- #
5
3
  # flake8: noqa
6
4
 
7
5
  import objc, sys
@@ -281,5 +279,12 @@ objc.registerNewKeywordsFromSelector(
281
279
  "MCSession", b"initWithPeer:securityIdentity:encryptionPreference:"
282
280
  )
283
281
  expressions = {}
282
+ formal_protocols = {
283
+ "MCAdvertiserAssistantDelegate": "MCAdvertiserAssistantDelegate",
284
+ "MCBrowserViewControllerDelegate": "MCBrowserViewControllerDelegate",
285
+ "MCNearbyServiceAdvertiserDelegate": "MCNearbyServiceAdvertiserDelegate",
286
+ "MCNearbyServiceBrowserDelegate": "MCNearbyServiceBrowserDelegate",
287
+ "MCSessionDelegate": "MCSessionDelegate",
288
+ }
284
289
 
285
290
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-MultipeerConnectivity
3
- Version: 12.2.2
3
+ Version: 13.0
4
4
  Summary: Wrappers for the framework MultipeerConnectivity on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Programming Language :: Python :: 3.14
25
24
  Classifier: Programming Language :: Python :: 3.15
25
+ Classifier: Programming Language :: Python :: 3.16
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
28
28
  Classifier: Programming Language :: Objective C
29
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.0
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -28,5 +28,5 @@ PyObjCTest/test_mcsession.py
28
28
  PyObjCTest/test_multipeerconnectivity.py
29
29
  metadata/MultipeerConnectivity.fwinfo
30
30
  metadata/metadata.ini
31
- metadata/raw/arm64-26.5.fwinfo
32
- metadata/raw/x86_64-26.5.fwinfo
31
+ metadata/raw/arm64-27.fwinfo
32
+ metadata/raw/x86_64-27.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 27.2 (26B123)
2
+ Apple clang version 21.0.0 (clang-2100.4.1.1)
3
+ SDK: macOS 27.2
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=13.0
2
+ pyobjc-framework-Cocoa>=13.0
@@ -2,6 +2,10 @@
2
2
  #include "Python.h"
3
3
  #include "pyobjc-api.h"
4
4
 
5
+ #ifdef USE_STATIC_ANALYZER
6
+ #include "../../pyobjc-core/Modules/objc/python-api-used.h"
7
+ #endif
8
+
5
9
  #import <MultipeerConnectivity/MultipeerConnectivity.h>
6
10
 
7
11
  /* We include the source code here instead of
@@ -9,6 +13,8 @@
9
13
  */
10
14
  #include "_MultipeerConnectivity_protocols.m"
11
15
 
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
12
18
  static PyMethodDef mod_methods[] = {
13
19
  {0, 0, 0, 0} /* sentinel */
14
20
  };
@@ -54,10 +60,11 @@ static struct PyModuleDef mod_module = {
54
60
  .m_free = NULL,
55
61
  };
56
62
 
57
- PyObject* PyInit__MultipeerConnectivity(void);
63
+ PyObject* _Nullable PyInit__MultipeerConnectivity(void);
58
64
 
59
- PyObject* __attribute__((__visibility__("default")))
65
+ PyObject* _Nullable __attribute__((__visibility__("default")))
60
66
  PyInit__MultipeerConnectivity(void)
61
67
  {
62
68
  return PyModuleDef_Init(&mod_module);
63
69
  }
70
+ NS_ASSUME_NONNULL_END
@@ -1,8 +1,7 @@
1
- /*
2
- * This file is generated by objective.metadata
3
- *
4
- * Last update: Tue Dec 30 21:46:16 2014
5
- */
1
+ // LCOV_EXCL_START
2
+ // This function is only present to ensure protocols are
3
+ // available at runtime.
4
+ NS_ASSUME_NONNULL_BEGIN
6
5
 
7
6
  static void __attribute__((__used__))
8
7
  use_protocols(void)
@@ -21,3 +20,6 @@ use_protocols(void)
21
20
  Py_XDECREF(p);
22
21
  #endif /* PyObjC_BUILD_RELEASE >= 1010 */
23
22
  }
23
+
24
+ NS_ASSUME_NONNULL_END
25
+ // LCOV_EXCL_STOP
@@ -60,6 +60,11 @@ typedef int(RegisterMethodMappingFunctionType)(
60
60
  PyObject* _Nonnull const* _Nonnull, size_t),
61
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
62
62
 
63
+ #ifndef PyObjC_FUNCTION_CALL_H
64
+ typedef PyObject* _Nullable (*PyObjC_FunctionCallFunc)(
65
+ PyObject* meth, PyObject* _Nonnull const* _Nonnull args, size_t nargs);
66
+ #endif
67
+
63
68
  struct pyobjc_api {
64
69
  int api_version; /* API version */
65
70
  size_t struct_len; /* Length of this struct */
@@ -117,6 +122,9 @@ struct pyobjc_api {
117
122
 
118
123
  PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
124
  const char*);
125
+ int (*_Nonnull register_functioncaller)(void*, PyObjC_FunctionCallFunc);
126
+ PyObject* _Nullable (*_Nonnull create_registered_struct)(
127
+ const char*, Py_ssize_t, const char* _Nonnull* _Nullable, Py_ssize_t*);
120
128
  };
121
129
 
122
130
  #ifndef PYOBJC_BUILD
@@ -159,6 +167,8 @@ static struct pyobjc_api* PyObjC_API;
159
167
  #define PyObjC_CheckArgCount (PyObjC_API->checkargcount)
160
168
  #define PyObjC_CheckNoKwnames (PyObjC_API->checknokwnames)
161
169
  #define PyObjCCreateOpaquePointerType (PyObjC_API->createopaquepointertype)
170
+ #define PyObjCRegister_FunctionCaller (PyObjC_API->register_functioncaller)
171
+ #define PyObjC_CreateRegisteredStruct (PyObjC_API->create_registered_struct)
162
172
 
163
173
  typedef void (*PyObjC_Function_Pointer)(void);
164
174
  typedef struct PyObjC_function_map {
@@ -178,21 +188,25 @@ static inline int
178
188
  PyObjC_ImportAPI(PyObject* calling_module)
179
189
  {
180
190
  PyObjC_API = (struct pyobjc_api*)PyCapsule_Import("objc." PYOBJC_API_NAME, 0);
181
- if (PyObjC_API == NULL) {
182
- return -1;
191
+ if (PyObjC_API == NULL) { // LCOV_BR_EXCL_LINE
192
+ return -1; // LCOV_EXCL_LINE
183
193
  }
184
- if (PyObjC_API->api_version != PYOBJC_API_VERSION) {
194
+ if (PyObjC_API->api_version != PYOBJC_API_VERSION) { // LCOV_BR_EXCL_LINE
195
+ // LCOV_EXCL_START
185
196
  PyErr_Format(PyExc_RuntimeError,
186
197
  "Wrong version of PyObjC C API (got %d, expected %d)",
187
198
  (int)PyObjC_API->api_version, (int)PYOBJC_API_VERSION);
188
199
  return -1;
200
+ // LCOV_EXCL_STOP
189
201
  }
190
202
 
191
- if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) {
203
+ if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) { // LCOV_EXCL_LINE
204
+ // LCOV_EXCL_START
192
205
  PyErr_Format(PyExc_RuntimeError,
193
206
  "Wrong struct-size of PyObjC C API (got %d, expected %d)",
194
207
  (int)PyObjC_API->struct_len, (int)sizeof(struct pyobjc_api));
195
208
  return -1;
209
+ // LCOV_EXCL_STOP
196
210
  }
197
211
 
198
212
  /* Current pyobjc implementation doesn't allow deregistering
@@ -167,24 +167,6 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
167
167
  PyGILState_Release(_GILState); \
168
168
  } while (0)
169
169
 
170
- #if PY_VERSION_HEX < 0x030a0000
171
-
172
- static inline PyObject*
173
- Py_NewRef(PyObject* o)
174
- {
175
- Py_INCREF(o);
176
- return o;
177
- }
178
-
179
- static inline PyObject*
180
- Py_XNewRef(PyObject* o)
181
- {
182
- Py_XINCREF(o);
183
- return o;
184
- }
185
-
186
- #endif /* PY_VERSION_HEX < 0x030a0000 */
187
-
188
170
  #if PY_VERSION_HEX < 0x030d0000
189
171
  #define Py_BEGIN_CRITICAL_SECTION(value) \
190
172
  { \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-MultipeerConnectivity
3
- Version: 12.2.2
3
+ Version: 13.0
4
4
  Summary: Wrappers for the framework MultipeerConnectivity on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Programming Language :: Python :: 3.14
25
24
  Classifier: Programming Language :: Python :: 3.15
25
+ Classifier: Programming Language :: Python :: 3.16
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
28
28
  Classifier: Programming Language :: Objective C
29
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.0
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -5,11 +5,13 @@ import MultipeerConnectivity
5
5
 
6
6
  class TestMCAdvertiserAssistant(TestCase):
7
7
  @min_os_level("10.10")
8
- def testClasses(self):
8
+ def test_classes(self):
9
9
  self.assertIsInstance(
10
10
  MultipeerConnectivity.MCAdvertiserAssistant, objc.objc_class
11
11
  )
12
12
 
13
13
  @min_os_level("10.10")
14
- def testProtocols(self):
15
- self.assertProtocolExists("MCAdvertiserAssistantDelegate")
14
+ def test_protocols(self):
15
+ self.assertProtocolExists(
16
+ "MCAdvertiserAssistantDelegate", MultipeerConnectivity
17
+ )
@@ -12,14 +12,16 @@ class TestMCBrowserViewControllerHelper(MultipeerConnectivity.NSObject):
12
12
 
13
13
  class TestMCBrowserViewController(TestCase):
14
14
  @min_os_level("10.10")
15
- def testClasses(self):
15
+ def test_classes(self):
16
16
  self.assertIsInstance(
17
17
  MultipeerConnectivity.MCBrowserViewController, objc.objc_class
18
18
  )
19
19
 
20
20
  @min_os_level("10.10")
21
- def testProtocols(self):
22
- self.assertProtocolExists("MCBrowserViewControllerDelegate")
21
+ def test_protocols(self):
22
+ self.assertProtocolExists(
23
+ "MCBrowserViewControllerDelegate", MultipeerConnectivity
24
+ )
23
25
 
24
26
  def test_protocol_methods(self):
25
27
  self.assertResultIsBOOL(
@@ -4,7 +4,7 @@ import MultipeerConnectivity
4
4
 
5
5
  class TestMCError(TestCase):
6
6
  @min_os_level("10.10")
7
- def testContents(self):
7
+ def test_constants(self):
8
8
  self.assertEqual(MultipeerConnectivity.MCErrorUnknown, 0)
9
9
  self.assertEqual(MultipeerConnectivity.MCErrorNotConnected, 1)
10
10
  self.assertEqual(MultipeerConnectivity.MCErrorInvalidParameter, 2)
@@ -12,14 +12,16 @@ class TestMCNearbyServiceAdvertiserDelegateHelper(MultipeerConnectivity.NSObject
12
12
 
13
13
  class TestMCNearbyServiceAdvertiser(TestCase):
14
14
  @min_os_level("10.10")
15
- def testClasses(self):
15
+ def test_classes(self):
16
16
  self.assertIsInstance(
17
17
  MultipeerConnectivity.MCNearbyServiceAdvertiser, objc.objc_class
18
18
  )
19
19
 
20
20
  @min_os_level("10.10")
21
- def testProtocols(self):
22
- self.assertProtocolExists("MCNearbyServiceAdvertiserDelegate")
21
+ def test_protocols(self):
22
+ self.assertProtocolExists(
23
+ "MCNearbyServiceAdvertiserDelegate", MultipeerConnectivity
24
+ )
23
25
 
24
26
  def test_protocol_methods(self):
25
27
  self.assertArgIsBlock(
@@ -5,11 +5,13 @@ import MultipeerConnectivity
5
5
 
6
6
  class TestMCNearbyServiceBrowser(TestCase):
7
7
  @min_os_level("10.10")
8
- def testClasses(self):
8
+ def test_classes(self):
9
9
  self.assertIsInstance(
10
10
  MultipeerConnectivity.MCNearbyServiceBrowser, objc.objc_class
11
11
  )
12
12
 
13
13
  @min_os_level("10.10")
14
- def testProtocols(self):
15
- self.assertProtocolExists("MCNearbyServiceBrowserDelegate")
14
+ def test_protocols(self):
15
+ self.assertProtocolExists(
16
+ "MCNearbyServiceBrowserDelegate", MultipeerConnectivity
17
+ )
@@ -5,5 +5,5 @@ import MultipeerConnectivity
5
5
 
6
6
  class TestMCPeerID(TestCase):
7
7
  @min_os_level("10.10")
8
- def testClasses(self):
8
+ def test_classes(self):
9
9
  self.assertIsInstance(MultipeerConnectivity.MCPeerID, objc.objc_class)
@@ -13,11 +13,11 @@ class TestMCSessionHelper(MultipeerConnectivity.NSObject):
13
13
 
14
14
  class TestMCSession(TestCase):
15
15
  @min_os_level("10.10")
16
- def testClasses(self):
16
+ def test_classes(self):
17
17
  self.assertIsInstance(MultipeerConnectivity.MCSession, objc.objc_class)
18
18
 
19
19
  @min_os_level("10.10")
20
- def testMethods(self):
20
+ def test_methods(self):
21
21
  self.assertResultIsBOOL(
22
22
  MultipeerConnectivity.MCSession.sendData_toPeers_withMode_error_
23
23
  )
@@ -37,8 +37,8 @@ class TestMCSession(TestCase):
37
37
  )
38
38
 
39
39
  @min_os_level("10.10")
40
- def testProtocols(self):
41
- self.assertProtocolExists("MCSessionDelegate")
40
+ def test_protocols(self):
41
+ self.assertProtocolExists("MCSessionDelegate", MultipeerConnectivity)
42
42
 
43
43
  def test_protocol_methods(self):
44
44
  self.assertArgHasType(
@@ -52,7 +52,7 @@ class TestMCSession(TestCase):
52
52
  )
53
53
 
54
54
  @min_os_level("10.10")
55
- def testConstants(self):
55
+ def test_constants(self):
56
56
  self.assertEqual(MultipeerConnectivity.MCSessionSendDataReliable, 0)
57
57
  self.assertEqual(MultipeerConnectivity.MCSessionSendDataUnreliable, 1)
58
58
  self.assertEqual(MultipeerConnectivity.MCSessionStateNotConnected, 0)
@@ -49,26 +49,6 @@
49
49
  },
50
50
  "class_method": false,
51
51
  "selector": "sendResourceAtURL:withName:toPeer:withCompletionHandler:"
52
- },
53
- {
54
- "args": {
55
- "3": {
56
- "type_modifier": "o",
57
- "type_name": "NSError * _Nullable *"
58
- }
59
- },
60
- "class_method": false,
61
- "selector": "sendData:toPeers:withMode:error:"
62
- },
63
- {
64
- "args": {
65
- "2": {
66
- "type_modifier": "o",
67
- "type_name": "NSError * _Nullable *"
68
- }
69
- },
70
- "class_method": false,
71
- "selector": "startStreamWithName:toPeer:error:"
72
52
  }
73
53
  ]
74
54
  },
@@ -132,9 +112,6 @@
132
112
  }
133
113
  ]
134
114
  }
135
- },
136
- "formal_protocols": {},
137
- "functions": {},
138
- "informal_protocols": {}
115
+ }
139
116
  }
140
117
  }