示例#1
0
 def test_get_pointer(self):
     capsule = test_py3c.capsule_new()
     self.assertTrue(test_py3c.capsule_getpointer_check(capsule))
     if not CAPSULE_THUNK:
         self.assertRaises(ValueError,
                           test_py3c.capsule_getpointer_nullname_check,
                           capsule)
示例#2
0
 def test_setpointer(self):
     capsule = test_py3c.capsule_new()
     self.assertTrue(test_py3c.capsule_getpointer_check(capsule))
     test_py3c.capsule_setpointer(capsule)
     self.assertTrue(test_py3c.capsule_getpointer_check_other(capsule))
示例#3
0
文件: __main__.py 项目: eye3/py3c
 def test_setpointer(self):
     capsule = test_py3c.capsule_new()
     self.assertTrue(test_py3c.capsule_getpointer_check(capsule))
     test_py3c.capsule_setpointer(capsule)
     self.assertTrue(test_py3c.capsule_getpointer_check_other(capsule))
示例#4
0
文件: __main__.py 项目: eye3/py3c
 def test_get_pointer(self):
     capsule = test_py3c.capsule_new()
     self.assertTrue(test_py3c.capsule_getpointer_check(capsule))
     if not CAPSULE_THUNK:
         self.assertRaises(ValueError, test_py3c.capsule_getpointer_nullname_check, capsule)