Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ctypes] all long double tests fail on android-24-x86_64 #76383

Closed
xdegaye mannequin opened this issue Dec 2, 2017 · 2 comments
Closed

[ctypes] all long double tests fail on android-24-x86_64 #76383

xdegaye mannequin opened this issue Dec 2, 2017 · 2 comments
Labels
3.7 extension-modules C modules in the Modules dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Dec 2, 2017

BPO 32202
Nosy @pmp-p, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2022-01-24.22:44:57.640>
created_at = <Date 2017-12-02.17:09:53.650>
labels = ['extension-modules', 'type-bug', 'tests', '3.7']
title = '[ctypes] all long double tests fail on android-24-x86_64'
updated_at = <Date 2022-01-24.22:44:57.639>
user = 'https://github.com/xdegaye'

bugs.python.org fields:

activity = <Date 2022-01-24.22:44:57.639>
actor = 'iritkatriel'
assignee = 'none'
closed = True
closed_date = <Date 2022-01-24.22:44:57.640>
closer = 'iritkatriel'
components = ['Extension Modules', 'Tests']
creation = <Date 2017-12-02.17:09:53.650>
creator = 'xdegaye'
dependencies = []
files = []
hgrepos = []
issue_num = 32202
keywords = []
message_count = 2.0
messages = ['307439', '411526']
nosy_count = 2.0
nosy_names = ['pmpp', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue32202'
versions = ['Python 3.7']

@xdegaye
Copy link
Mannequin Author

xdegaye mannequin commented Dec 2, 2017

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

@xdegaye xdegaye mannequin added 3.7 extension-modules C modules in the Modules dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Dec 2, 2017
@iritkatriel
Copy link
Member

iritkatriel commented Jan 24, 2022

3.7 is no longer being maintained. Please create a new issue if you are having this problem on a current version (>= 3.9)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 extension-modules C modules in the Modules dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant