main
main copied to clipboard
ctypes failing some 2.7 tests
Should also re-enable tests in ctypes\test\test_callbacks.py and ctypes\test\test_random_things.py
#
## FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last):
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\ctypes\test\test_callbacks.py", line 73, in test_ulonglong
self.check_type(c_ulonglong, 10955412242170339782)
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\ctypes\test\test_callbacks.py", line 23, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (-695770682,) != (10955412242170339782L,)
First differing element 0:
-695770682
10955412242170339782
* (-695770682,)
* (10955412242170339782L,)
#
## FAIL: test_ulonglong (ctypes.test.test_callbacks.StdcallCallbacks)
Traceback (most recent call last):
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\ctypes\test\test_callbacks.py", line 73, in test_ulonglong
self.check_type(c_ulonglong, 10955412242170339782)
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\ctypes\t
est\test_callbacks.py", line 23, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (-695770682,) != (10955412242170339782L,)
First differing element 0:
-695770682
10955412242170339782
* (-695770682,)
* (10955412242170339782L,)
#
## FAIL: test_TypeErrorDivisionError
(ctypes.test.test_random_things.CallbackTracbackTestCase)
Traceback (most recent call last):
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\ctypes\test\test_random_things.py", line 70, in test_TypeErrorDivisionError
self.assertEqual(out.splitlines()[-1],
AssertionError: "TypeError: unsupported operand type(s) for /: 'int' and
'str'" != "TypeError: unsupported operand type(s) for //: 'int' and 'str'"
* TypeError: unsupported operand type(s) for /: 'int' and 'str'+ TypeError: unsupported operand type(s) for //: 'int' and 'str'?
+
##
Ran 328 tests in 5.667s
FAILED (failures=3, errors=2)
50 of these test cases were disabled under IronPython.
Traceback (most recent call last):
File "test\test_ctypes.py", line 97, in <module>
File "test\test_ctypes.py", line 87, in test_main
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\test\tes
t_support.py", line 1078, in run_unittest
File "C:\vsl0\dlr\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\test\tes
t_support.py", line 1061, in _run_suite
test.test_support.TestFailed: multiple errors occurred
Work Item Details
Original CodePlex Issue: Issue 28314 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 29, 2010 at 12:35 AM Reported by: darb Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy