-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
test__xxsubinterpreters.ShareableTypeTests._assert_values fails on AIX - 32-bit mode #78750
Comments
+364 def _assert_values(self, values): +395 def test_int(self): The assert fails on -1 with: ====================================================================== Traceback (most recent call last):
File "/data/prj/python/python3-3.8.0/Lib/test/test__xxsubinterpreters.py", line 371, in _assert_values
self.assertEqual(got, obj)
AssertionError: 4294967295 != -1 Note that this value is the unsigned value for 32-bit int as -1 root@x066:[/data/prj/python/python3-3.8.0]grep 4294967295 /usr/include/sys/*.h After quite a lot of "learning", I narrow the issue to: +1432 static int +1426 static PyObject * The "value" is stored as a void data type, and the high-order 64-bits are zero. When it gets returned as a PyLong... it goes positive. I do not dare touch anything here without some "mentoring". Or, we change the test so that it knows it is in 32-bit mode, and compares with something else. In short, "mentoring" requested. p.s. not had time to test in 64-bit mode. Will post on that later. |
64-bit mode, no error. root@x066:[/data/prj/python/python3-3.8.0]./python -m test -v test__xxsubinterpreters ---------------------------------------------------------------------- OK (skipped=5) == Tests result: SUCCESS == |
Thanks for bringing this up, Michael. I'll give you a review on the PR sometime this week (while at the core sprint). |
Thanks, Michael. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: