This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [ctypes] all long double tests fail on android-24-x86_64
Type: behavior Stage: resolved
Components: Extension Modules, Tests Versions: Python 3.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, pmpp
Priority: normal Keywords:

Created on 2017-12-02 17:09 by xdegaye, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg307439 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2017-12-02 17:09
These tests are ok on Android API 24 on the armv7, x86 and arm64 architectures.

======================================================================
FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/ctypes/test/test_callbacks.py", line 83, in test_longdouble
    self.check_type(c_longdouble, 3.14)
  File "/sdcard/org.python/lib/python3.7/ctypes/test/test_callbacks.py", line 25, in check_type
    self.assertEqual(result, arg)
AssertionError: 0.0 != 3.14

======================================================================
FAIL: test_longdouble (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/ctypes/test/test_cfuncs.py", line 165, in test_longdouble
    self.assertEqual(self._dll.tf_D(42.), 14.)
AssertionError: 0.0 != 14.0

======================================================================
FAIL: test_longdouble_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/ctypes/test/test_cfuncs.py", line 171, in test_longdouble_p
lus
    self.assertEqual(self._dll.tf_bD(0, 42.), 14.)
AssertionError: 0.0 != 14.0

======================================================================
FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/ctypes/test/test_functions.py", line 146, in test_longdoubl
eresult
    self.assertEqual(result, 21)
AssertionError: 0.0 != 21

----------------------------------------------------------------------
Ran 468 tests in 1.815s

FAILED (failures=4, skipped=92)
test test_ctypes failed
test_ctypes failed

1 test failed:
    test_ctypes
msg411526 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-24 22:44
3.7 is no longer being maintained. Please create a new issue if you are having this problem on a current version (>= 3.9)
History
Date User Action Args
2022-04-11 14:58:55adminsetgithub: 76383
2022-01-24 22:44:57iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg411526

resolution: out of date
stage: needs patch -> resolved
2019-12-10 08:10:28xdegayesetnosy: - xdegaye
2018-01-23 20:53:26pmppsetnosy: + pmpp
2017-12-09 15:42:06xdegayelinkissue26865 dependencies
2017-12-02 17:09:53xdegayecreate